automated-end-to-end-api.yaml 880 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. name: Automated API tests
  2. on:
  3. push:
  4. paths-ignore:
  5. - 'web/**'
  6. pull_request:
  7. paths-ignore:
  8. - 'web/**'
  9. jobs:
  10. test:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - id: skip_check
  14. uses: fkirc/skip-duplicate-actions@v5
  15. with:
  16. concurrent_skipping: 'same_content_newer'
  17. - uses: earthly/actions-setup@v1
  18. with:
  19. version: 'latest' # or pin to an specific version, e.g. "v0.6.10"
  20. - name: Earthly version
  21. run: earthly --version
  22. - name: Set up QEMU
  23. id: qemu
  24. uses: docker/setup-qemu-action@v2
  25. with:
  26. image: tonistiigi/binfmt:latest
  27. platforms: all
  28. - uses: actions/checkout@v3
  29. - name: Run API tests
  30. uses: nick-fields/retry@v2
  31. with:
  32. timeout_minutes: 10
  33. max_attempts: 3
  34. command: earthly +api-tests