2021-09-17 23:04:09 +02:00
|
|
|
name: Automated API tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths-ignore:
|
|
|
|
- 'webroot/**'
|
2022-09-05 01:41:02 +02:00
|
|
|
- 'web/**'
|
|
|
|
|
2022-10-13 00:34:35 +02:00
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
2022-10-13 01:52:05 +02:00
|
|
|
- 'webroot/**'
|
|
|
|
- 'web/**'
|
2022-10-13 00:34:35 +02:00
|
|
|
|
2021-09-17 23:04:09 +02:00
|
|
|
jobs:
|
2022-09-05 01:41:02 +02:00
|
|
|
test:
|
2021-09-17 23:04:09 +02:00
|
|
|
runs-on: ubuntu-latest
|
2022-11-05 04:04:13 +01:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2021-09-17 23:04:09 +02:00
|
|
|
steps:
|
2022-09-05 01:41:02 +02:00
|
|
|
- uses: earthly/actions-setup@v1
|
2021-10-11 23:56:00 +02:00
|
|
|
with:
|
2022-09-05 01:41:02 +02:00
|
|
|
version: 'latest' # or pin to an specific version, e.g. "v0.6.10"
|
|
|
|
|
|
|
|
- name: Earthly version
|
|
|
|
run: earthly --version
|
2021-09-17 23:04:09 +02:00
|
|
|
|
2022-09-05 01:41:02 +02:00
|
|
|
- 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
|
|
|
|
run: earthly +api-tests
|