Skip to content

Test · branch main #87

Test · branch main

Test · branch main #87

Workflow file for this run

name: Test
run-name: >-
Test · ${{ github.event_name == 'pull_request' && format('MR #{0} ({1} → {2})',
github.event.pull_request.number, github.head_ref, github.base_ref) || format('branch {0}',
github.ref_name) }}
on:
pull_request:
push:
branches:
- main
- 'release/*'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
arango-image: ['arangodb:3.12', 'arangodb:3.12.6']
node-version: [20.x, 22.x, 24.x, 25.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run:
docker run --name arangodb -p 127.0.0.1:8529:8529 -d -e ARANGO_NO_AUTH=1 -e LANG=en_US ${{
matrix.arango-image }}
- run: timeout 10 docker logs --follow arangodb || true # wait until arangodb is started
- run: curl -L http://localhost:8529/_api/version
- run: npm ci
- run: npm run knip
- run: npm run knip:prod
- run: npm run typecheck
- run: npm test
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true