Bump #6
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: Lint | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}' | |
cancel-in-progress: true | |
jobs: | |
linting: | |
name: Run linters | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v3 | |
- name: Install node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
- name: Yarn install | |
uses: Wandalen/wretry.action@master | |
with: | |
command: yarn --frozen-lockfile | |
attempt_limit: 3 | |
attempt_delay: 2000 | |
- name: Lint check | |
run: yarn lint | |
- name: Lint lockfile | |
run: yarn lockfile-lint | |
- name: Prettier check | |
run: yarn prettier --check . | |
- name: Check & compile i18n | |
run: yarn intl:build | |
- name: Type check | |
run: yarn typecheck | |
testing: | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v3 | |
- name: Install node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
- name: Yarn install | |
uses: Wandalen/wretry.action@master | |
with: | |
command: yarn --frozen-lockfile | |
attempt_limit: 3 | |
attempt_delay: 2000 | |
- name: Check & compile i18n | |
run: yarn intl:build | |
- name: Run tests | |
run: | | |
NODE_ENV=test yarn test --forceExit |