Skip to content

feat: SKFP-1356 update pr template #1190

feat: SKFP-1356 update pr template

feat: SKFP-1356 update pr template #1190

Workflow file for this run

name: Quality
on:
pull_request:
branches: [dev]
jobs:
build:
name: Install Dependencies
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v3
- name: Set up node
uses: actions/setup-node@v1
with:
node-version: '18.8'
- name: use cache
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm ci
linter:
name: Run Linter
runs-on: ubuntu-latest
needs: build
steps:
- name: Check out source code
uses: actions/checkout@v3
- name: Set up node
uses: actions/setup-node@v1
with:
node-version: '18.8'
- name: use cache
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
- name: Run linter
run: npm run lint
tests:
runs-on: ubuntu-latest
needs: build
steps:
- name: Check out source code
uses: actions/checkout@v3
- name: Set up node
uses: actions/setup-node@v1
with:
node-version: '18.8'
- name: use cache
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
- name: Run tests
run: npm run test:github
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ArtiomTr/jest-coverage-report-action@v2
id: coverage
with:
test-script: npm run coverage:changed
output: report-markdown
- uses: marocchino/sticky-pull-request-comment@v2
with:
header: PR Coverage
message: ${{ steps.coverage.outputs.report }}