Skip to content

Bump actions/setup-node from 6 to 7 #30

Bump actions/setup-node from 6 to 7

Bump actions/setup-node from 6 to 7 #30

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node
uses: actions/setup-node@v7
with:
node-version: '22'
cache: npm
- name: Install dependencies
run: npm ci
- name: Build TypeScript
run: npm run build
- name: Typecheck
run: npm run typecheck
- name: Run TypeScript tests
run: node --test test/*.test.js
- name: Run Python backend tests
if: hashFiles('backend/python/tests/*.py') != ''
run: PYTHONPATH=backend/python python3 -m unittest discover -s backend/python/tests
- name: Run Rust backend tests
if: hashFiles('backend/rust/Cargo.toml') != ''
run: cargo test --manifest-path backend/rust/Cargo.toml
- name: Check generated JavaScript is current
run: git diff --exit-code -- src test
- name: Production file audit
run: test -f Dockerfile && test -f docker-compose.yml && test -f Makefile && test -f docs/DEPLOYMENT.md
- name: Build Docker image
run: docker build -t volta-oss/${{ github.event.repository.name }}:ci .