client: replace submodule with specific release #344
Workflow file for this run
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, Build, Publish | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| inputs: | |
| publish_image: | |
| description: 'Publish image to registry?' | |
| required: true | |
| type: boolean | |
| default: false | |
| jobs: | |
| test-images: | |
| timeout-minutes: 10 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| x: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ] | |
| y: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ] | |
| #needs: | |
| #- test-misc | |
| #- test-envsub | |
| #- test-nginx | |
| #- test-secrets | |
| #- test-service | |
| runs-on: ubuntu-latest # TODO matrix to run on all expected versions? | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| submodules: recursive | |
| #- run: ./test/check-docker-context.sh --min-size 5000 --max-size 10000 --min-count 600 --max-count 700 | |
| - name: Extract FRONTEND_VERSION | |
| run: | | |
| touch .env | |
| echo "FRONTEND_VERSION=$( | |
| docker compose config --format json | jq -r .services.nginx.build.args.FRONTEND_VERSION | |
| )" >> "$GITHUB_ENV" | |
| - run: FRONTEND_BUILD_MODE=fetch ./test/test-images.sh | |
| # Check out the current frontend version referenced by docker-compose, as it should build OK. | |
| - run: | | |
| git clone \ | |
| --depth 1 \ | |
| --branch "$FRONTEND_VERSION" \ | |
| https://github.com/alxndrsn/odk-central-frontend.git \ | |
| client | |
| - run: FRONTEND_BUILD_MODE=source ./test/test-images.sh | |
| - if: always() | |
| run: docker compose logs |