chore(deps): update dependency eslint to v9 #333
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: Continuous Integration | |
on: | |
pull_request: | |
branches: | |
- development | |
push: | |
# branches-ignore: | |
# - main | |
# - development | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
audit: | |
name: Audit | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18, 20] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: ./.github/actions/setup-pnpm | |
with: | |
npm_token: ${{ secrets.NPM_TOKEN }} | |
- name: Perform dependency audit | |
run: | | |
pnpm audit-ci --config .audit-ci.json | |
lint: | |
name: Lint | |
needs: audit | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18, 20] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: ./.github/actions/setup-pnpm | |
with: | |
npm_token: ${{ secrets.NPM_TOKEN }} | |
- name: Execute lint | |
run: | | |
pnpm lint | |
coverage: | |
name: Coverage | |
needs: audit | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18, 20] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: ./.github/actions/setup-pnpm | |
with: | |
npm_token: ${{ secrets.NPM_TOKEN }} | |
- name: Generate code coverage | |
run: | | |
pnpm test -- \ | |
--ci \ | |
--runInBand \ | |
--coverage | |
- name: Upload code coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |