Skip to content

Commit

Permalink
feat: add integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
dpeckett committed Sep 5, 2024
1 parent f69a65b commit 39dc19b
Show file tree
Hide file tree
Showing 3 changed files with 1,363 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/earthly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ jobs:
run: earthly +lint

- name: Test
run: earthly +test
run: |
earthly +test
earthly +integration-test
release:
needs: build-and-test
Expand Down
8 changes: 8 additions & 0 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ test:
RUN go test -coverprofile=coverage.out -v ./...
SAVE ARTIFACT ./coverage.out AS LOCAL coverage.out

integration-test:
RUN apt update
RUN apt install -y jq
COPY +build/airgapify ./airgapify
COPY testdata ./testdata
RUN ./airgapify -f testdata/prometheus.yaml
RUN [ "$(tar -xf images.tar -O index.json | jq '.manifests | length')" -eq 6 ] || exit 1

package:
FROM debian:bookworm
# Use bookworm-backports for newer golang versions
Expand Down
Loading

0 comments on commit 39dc19b

Please sign in to comment.