Skip to content

chore(deps): update jest monorepo #638

chore(deps): update jest monorepo

chore(deps): update jest monorepo #638

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