You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
923 B
45 lines
923 B
name: Automated API tests |
|
|
|
on: |
|
push: |
|
paths-ignore: |
|
- 'webroot/**' |
|
- 'web/**' |
|
|
|
pull_request: |
|
paths-ignore: |
|
- 'webroot/**' |
|
- 'web/**' |
|
|
|
jobs: |
|
test: |
|
runs-on: ubuntu-latest |
|
|
|
steps: |
|
- id: skip_check |
|
uses: fkirc/skip-duplicate-actions@v5 |
|
with: |
|
concurrent_skipping: 'same_content_newer' |
|
|
|
- uses: earthly/actions-setup@v1 |
|
with: |
|
version: 'latest' # or pin to an specific version, e.g. "v0.6.10" |
|
|
|
- name: Earthly version |
|
run: earthly --version |
|
|
|
- name: Set up QEMU |
|
id: qemu |
|
uses: docker/setup-qemu-action@v2 |
|
with: |
|
image: tonistiigi/binfmt:latest |
|
platforms: all |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- name: Run API tests |
|
uses: nick-fields/retry@v2 |
|
with: |
|
timeout_minutes: 10 |
|
max_attempts: 3 |
|
command: earthly +api-tests
|
|
|