google-analytics edits #2542
Workflow file for this run
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: Test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
version: [20, 21] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.version }} | |
cache: yarn | |
- run: yarn --frozen-lockfile | |
- run: yarn c8 --check-coverage -x src/**/*.d.ts -x src/preview.ts -x src/observableApiConfig.ts -x src/client --lines 80 --per-file yarn test:mocha | |
- run: yarn test:tsc | |
- run: | | |
echo ::add-matcher::.github/eslint.json | |
yarn run eslint src test --format=compact --max-warnings=0 | |
- run: yarn test:prettier | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: test-output-changes | |
path: | | |
test/output/*-changed.* | |
test/output/build/*-changed/ |