Update dependencies, switch to node20, replace nock with undici.MockClient #1545
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: build-test | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
# All other branches are handled in test-and-update which auto-formats, | |
# updates dist, runs tests, and pushes the changes back to the branch | |
tags: | |
- '*' | |
jobs: | |
build: # make sure build/ci work properly, and that dist was updated | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
# Ensure this matches .github/workflows/test-and-update.yml and .gitpod.Dockerfile | |
node-version: '20' | |
cache: npm | |
- run: npm install | |
- run: npm run all | |
- run: | | |
git diff --exit-code | |
if [ -n "$(git status --porcelain)" ]; then | |
exit 1 | |
fi |