Release v2025.1.2 #517
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| test-misc: # quick, simple checks | |
| timeout-minutes: 2 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - 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: 22.14.0 | |
| - run: cd test/nginx && npm i | |
| - run: cd test/nginx && npm run lint | |
| - run: cd test/nginx && ./run-tests.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 |