Run acceptance tests after build

This commit is contained in:
Yann Hamon 2020-06-04 19:40:56 +02:00
parent deb60c1ec8
commit b46f7cc3c4
3 changed files with 8 additions and 3 deletions

View file

@ -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
run: make docker-build-static
- name: acceptance-tests
run:
docker build -t bats -f Dockerfile.bats .

View file

@ -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

0
acceptance.bats Normal file → Executable file
View file