Bump @types/node from 20.14.9 to 22.0.2 #63
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
build_test_job: | |
name: 'Build and test job' | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-latest, ubuntu-latest, macos-latest] | |
steps: | |
- name: 'Checking out repo code' | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: 'Setup Node.js' | |
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 | |
with: | |
node-version: '20' | |
- name: 'Validate build' | |
run: | | |
npm ci | |
npm run build | |
- name: 'Run L0 tests' | |
run: | | |
npm run test | |
# validate if the dist folder has no changes that are not commited | |
- name: Check for uncommitted changes | |
# do not run on Windows runnrs because it always has issues, perhaps line endings or something? | |
if: runner.os != 'Windows' | |
shell: pwsh | |
run: | | |
if ((git status --porcelain dist).Length -ne 0) { | |
Write-Output "dist folder has changes that are not committed:" | |
git status --porcelain dist | |
exit 1 | |
} | |
else { | |
Write-Output "dist folder has no changes" | |
} |