Download this file
| 1 | name: Tests |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [ main ] |
| 6 | pull_request: |
| 7 | branches: [ main ] |
| 8 | types: [opened, synchronize, reopened, ready_for_review] |
| 9 | |
| 10 | concurrency: |
| 11 | group: tests-${{ github.ref }} |
| 12 | cancel-in-progress: true |
| 13 | |
| 14 | jobs: |
| 15 | test: |
| 16 | runs-on: ubuntu-latest |
| 17 | if: false |
| 18 | strategy: |
| 19 | matrix: |
| 20 | go-version: ['1.23'] |
| 21 | node-version: ['20'] |
| 22 | |
| 23 | steps: |
| 24 | - uses: actions/checkout@v4 |
| 25 | with: |
| 26 | # Test-only job — nothing needs the persisted git credential. |
| 27 | persist-credentials: false |
| 28 | |
| 29 | - name: Set up Go |
| 30 | uses: actions/setup-go@v5 |
| 31 | with: |
| 32 | go-version: ${{ matrix.go-version }} |
| 33 | |
| 34 | - name: Set up Node.js |
| 35 | uses: actions/setup-node@v4 |
| 36 | with: |
| 37 | node-version: ${{ matrix.node-version }} |
| 38 | |
| 39 | - name: Run Go tests |
| 40 | run: go test ./... |
| 41 | |
| 42 | - name: Run JavaScript tests |
| 43 | run: npm test |
| 44 | |
| 45 | - name: Check JavaScript syntax |
| 46 | run: find web/static home/web/static -name '*.js' -type f | xargs -I {} node --check {} |
| 47 | |