chore(deps): update jest monorepo #638
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull Request | |
on: [pull_request] | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Format | |
run: yarn prettier '**/*.ts' --check | |
lint: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Lint source code | |
run: yarn eslint 'packages/**/lib/**/*.ts' | |
- name: Lint test code | |
run: yarn eslint -c .eslintrc.spec.yaml --fix 'packages/**/tests/**/*.spec.ts' | |
lint-commit: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
configFile: .commitlintrc.json | |
- name: Lint commit | |
uses: wagoid/commitlint-github-action@v5.3.1 | |
with: | |
configFile: ./.commitlintrc.json | |
failOnWarnings: true | |
build: | |
needs: | |
- format | |
- lint | |
- lint-commit | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [ 16.x ] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Build | |
run: yarn build |