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