name: Tests on: push: branches: [ main ] pull_request: branches: [ main ] types: [opened, synchronize, reopened, ready_for_review] concurrency: group: tests-${{ github.ref }} cancel-in-progress: true jobs: test: runs-on: ubuntu-latest if: false strategy: matrix: go-version: ['1.23'] node-version: ['20'] steps: - uses: actions/checkout@v4 with: # Test-only job — nothing needs the persisted git credential. persist-credentials: false - name: Set up Go uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - name: Set up Node.js uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: Run Go tests run: go test ./... - name: Run JavaScript tests run: npm test - name: Check JavaScript syntax run: find web/static home/web/static -name '*.js' -type f | xargs -I {} node --check {}