Smoke tests #5
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: Smoke tests | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| permissions: | |
| contents: read | |
| jobs: | |
| smoke-test: | |
| strategy: | |
| matrix: | |
| test: | |
| - default-config-macro | |
| - docker-registry | |
| - double_slash | |
| - forced-language | |
| - git-clone | |
| - git-push | |
| - healthcheck | |
| - i18n | |
| - log-file | |
| - nginx | |
| - palemoon/amd64 | |
| #- palemoon/i386 | |
| - robots_txt | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | |
| with: | |
| node-version: "24.11.0" | |
| - uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 | |
| with: | |
| go-version: "stable" | |
| - uses: ko-build/setup-ko@d006021bd0c28d1ce33a07e7943d48b079944c8d # v0.9 | |
| - name: Install utils | |
| run: | | |
| go install ./utils/cmd/... | |
| - name: Run test | |
| run: | | |
| cd test/${{ matrix.test }} | |
| backoff-retry --try-count 10 ./test.sh | |
| - name: Sanitize artifact name | |
| if: always() | |
| run: echo "ARTIFACT_NAME=${{ matrix.test }}" | sed 's|/|-|g' >> $GITHUB_ENV | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f | |
| if: always() | |
| with: | |
| name: ${{ env.ARTIFACT_NAME }} | |
| path: test/${{ matrix.test }}/var |