Run API tests inside Eartlhly
This commit is contained in:
31
.github/workflows/automated-end-to-end-api.yaml
vendored
31
.github/workflows/automated-end-to-end-api.yaml
vendored
@@ -3,19 +3,30 @@ name: Automated API tests
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- 'webroot/**'
|
||||
- 'web/**'
|
||||
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- 'web/**'
|
||||
|
||||
jobs:
|
||||
api:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-go@v3
|
||||
- uses: earthly/actions-setup@v1
|
||||
with:
|
||||
stable: 'false'
|
||||
go-version: '1.17.2'
|
||||
- name: Run API tests
|
||||
run: cd test/automated/api && ./run.sh
|
||||
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
|
||||
run: earthly +api-tests
|
||||
|
||||
Reference in New Issue
Block a user