Skip to content

Bump @types/node from 20.14.9 to 22.0.2 #63

Bump @types/node from 20.14.9 to 22.0.2

Bump @types/node from 20.14.9 to 22.0.2 #63

Workflow file for this run

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"
}