From b46f7cc3c4f351a49d22440e0118907f3246be28 Mon Sep 17 00:00:00 2001 From: Yann Hamon Date: Thu, 4 Jun 2020 19:40:56 +0200 Subject: [PATCH] Run acceptance tests after build --- .github/workflows/main.yml | 8 ++++++-- Makefile | 3 ++- acceptance.bats | 0 3 files changed, 8 insertions(+), 3 deletions(-) mode change 100644 => 100755 acceptance.bats diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1e00f88..504573a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,8 +10,12 @@ jobs: - name: checkout uses: actions/checkout@v2 - - name: test + - name: tests run: make docker-test - name: build - run: make docker-build-static \ No newline at end of file + run: make docker-build-static + + - name: acceptance-tests + run: + docker build -t bats -f Dockerfile.bats . diff --git a/Makefile b/Makefile index 1773654..e6dfda5 100644 --- a/Makefile +++ b/Makefile @@ -20,4 +20,5 @@ docker-build-static: docker run -t -v $$PWD:/go/src/github.com/yannh/kubeconform -w /go/src/github.com/yannh/kubeconform golang:1.14 make build-static acceptance: - bats acceptance.bats + docker build -t bats -f Dockerfile.bats . + docker run -t bats acceptance.bats diff --git a/acceptance.bats b/acceptance.bats old mode 100644 new mode 100755