Skip to content

Commit

Permalink
add test-e2e make target and GH action
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
  • Loading branch information
inteon committed Jul 16, 2024
1 parent 7fcfeb7 commit 62e3c51
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/e2e-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: e2e-test
on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
run_e2e_test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]

runs-on: ${{ matrix.os }}

permissions:
contents: read

steps:
- uses: actions/checkout@v4

- id: go-version
run: |
make print-go-version >> "$GITHUB_OUTPUT"
- uses: actions/setup-go@v5
with:
go-version: ${{ steps.go-version.outputs.result }}

- run: make test-e2e
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ learn-image-shas: | $(NEEDS_CRANE)
@CRANE=$(CRANE) \
./scripts/learn_image_shas.sh

# Test targets

.PHONY: test-e2e
test-e2e:
@./tests/test_e2e.sh

.PHONY: help
help: ## Show this help
@echo "Usage: make [target] ..."
Expand All @@ -92,3 +98,5 @@ help: ## Show this help
@echo
@echo "make learn-tools-shas"
@echo "make learn-image-shas"
@echo
@echo "make test-e2e"

0 comments on commit 62e3c51

Please sign in to comment.