Skip to content

Chores getodk/central#1555: Update Nodejs to v24 #1060

Chores getodk/central#1555: Update Nodejs to v24

Chores getodk/central#1555: Update Nodejs to v24 #1060

Workflow file for this run

name: Test
on:
push:
pull_request:
jobs:
test-misc: # quick, simple checks
timeout-minutes: 2
runs-on: ubuntu-latest
steps:
- run: docker --version
- run: docker compose version
- uses: actions/checkout@v4
- run: sudo apt-get install shellcheck
- run: ./test/check-scripts.sh
- run: ./test/check-dockerfiles.sh
test-envsub:
timeout-minutes: 2
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
submodules: recursive
- run: cd test/envsub && ./run-tests.sh
test-nginx:
timeout-minutes: 2
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
submodules: recursive
- uses: actions/setup-node@v4
with:
node-version: 24.12.0
- run: cd test/nginx && npm clean-install
- run: cd test/nginx && npm run lint
- run: cd test/nginx && ./setup-tests.sh
- run: cd test/nginx && npm run test:nginx
- run: cd test/nginx && ./gixy.sh
- if: always()
run: cd test/nginx && docker compose -f nginx.test.docker-compose.yml logs --no-log-prefix nginx
- if: always()
run: cd test/nginx && docker compose -f nginx.test.docker-compose.yml logs --no-log-prefix service
- if: always()
run: cd test/nginx && docker compose -f nginx.test.docker-compose.yml logs --no-log-prefix enketo
test-secrets:
timeout-minutes: 2
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: ./test/test-secrets.sh
test-images:
timeout-minutes: 10
needs:
- test-misc
- test-envsub
- test-nginx
- test-secrets
runs-on: ubuntu-latest # TODO matrix to run on all expected versions?
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
submodules: recursive
- run: ./test/check-docker-context.sh --report
- run: ./test/test-images.sh
- if: always()
run: docker compose logs