update ci #1
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: CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
tags: | |
- '!*' # Do not execute on tags | |
paths: | |
- src/* | |
- yarn.lock | |
- .github/workflows/test.yml | |
pull_request: | |
paths: | |
- '!*.MD' | |
jobs: | |
test: | |
name: Test/Coverage | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- run: corepack enable | |
- uses: actions/setup-node@master | |
with: | |
node-version: 22 | |
- run: yarn install --immutable | |
- run: node build | |
- run: yarn test --run --coverage | |
- uses: paambaati/[email protected] | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | |
- run: yarn prettier -w src | |
- run: yarn eslint --fix src |