Bump eslint-config-prettier from 8.8.0 to 9.0.0 #180
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: Tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- 'master' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [16, 18] | |
name: Test Node v${{ matrix.node }} | |
steps: | |
- name: π₯β Checkout | |
uses: actions/checkout@v3 | |
- name: πͺ Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: 'yarn' | |
- name: π¦ Install dependencies | |
run: yarn install | |
- name: ποΈ Build | |
run: yarn run build | |
- name: π§ͺ Tests | |
run: yarn run test | |
- name: π¨ ESLint | |
run: | | |
yarn run lint || (echo "##[error] found lint errors. please 'yarn run lint --fix'" \ | |
"and fix all errors" \ | |
&& exit 1) | |
- name: π¨ Format | |
run: | | |
yarn run format:check || (echo "##[error] found unformatted files. please 'yarn run format'" \ | |
"and check in all changes" \ | |
&& exit 1) | |
- name: ποΈ Example build | |
run: yarn run build:doc | |
summary: | |
runs-on: ubuntu-latest | |
needs: test | |
if: always() | |
name: test-summary | |
steps: | |
- name: Summary status | |
run: if ${{ needs.test.result != 'success' && needs.test.result != 'skipped' }}; then exit 1; fi | |
coverage: | |
needs: summary | |
name: coverage | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name == 'push' }} | |
steps: | |
- name: π₯β Checkout | |
uses: actions/checkout@v3 | |
- name: πͺ Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'yarn' | |
- name: π¦ Install dependencies | |
run: yarn install | |
- name: ποΈ Collect coverage | |
uses: paambaati/[email protected] | |
env: | |
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}} | |
with: | |
coverageCommand: yarn test --coverage |