smoke-tests.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. name: Smoke tests
  2. on:
  3. push:
  4. branches: ["main"]
  5. pull_request:
  6. branches: ["main"]
  7. permissions:
  8. contents: read
  9. jobs:
  10. smoke-test:
  11. strategy:
  12. matrix:
  13. test:
  14. - default-config-macro
  15. - docker-registry
  16. - double_slash
  17. - forced-language
  18. - git-clone
  19. - git-push
  20. - healthcheck
  21. - i18n
  22. - log-file
  23. - nginx
  24. - palemoon/amd64
  25. #- palemoon/i386
  26. - robots_txt
  27. runs-on: ubuntu-latest
  28. steps:
  29. - name: Checkout code
  30. uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
  31. with:
  32. persist-credentials: false
  33. - uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
  34. with:
  35. node-version: "24.11.0"
  36. - uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
  37. with:
  38. go-version: "1.25.4"
  39. - uses: ko-build/setup-ko@d006021bd0c28d1ce33a07e7943d48b079944c8d # v0.9
  40. - name: Install utils
  41. run: |
  42. go install ./utils/cmd/...
  43. - name: Run test
  44. run: |
  45. cd test/${{ matrix.test }}
  46. backoff-retry --try-count 10 ./test.sh
  47. - name: Sanitize artifact name
  48. if: always()
  49. run: echo "ARTIFACT_NAME=${{ matrix.test }}" | sed 's|/|-|g' >> $GITHUB_ENV
  50. - name: Upload artifact
  51. uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
  52. if: always()
  53. with:
  54. name: ${{ env.ARTIFACT_NAME }}
  55. path: test/${{ matrix.test }}/var