From 05161fccc3ae29f956f189b9271c4029527bfee4 Mon Sep 17 00:00:00 2001 From: Jake McGinty Date: Thu, 20 May 2021 11:43:52 +0900 Subject: [PATCH] actions: run docker tests (#74) --- .github/workflows/docker-tests.yml | 21 +++++++++++++++++++++ docker-tests/run-docker-tests.sh | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/docker-tests.yml diff --git a/.github/workflows/docker-tests.yml b/.github/workflows/docker-tests.yml new file mode 100644 index 0000000..e9a7aaa --- /dev/null +++ b/.github/workflows/docker-tests.yml @@ -0,0 +1,21 @@ +name: Docker tests + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Build the Docker images + run: docker-tests/build-docker-images.sh + - name: Run the Docker tests + run: docker-tests/run-docker-tests.sh + diff --git a/docker-tests/run-docker-tests.sh b/docker-tests/run-docker-tests.sh index d0afee2..f892e1e 100755 --- a/docker-tests/run-docker-tests.sh +++ b/docker-tests/run-docker-tests.sh @@ -10,7 +10,7 @@ cmd() { } info() { - TERM=${TERM:-dumb} echo -e "$(tput setaf 4)- $@$(tput sgr0)" 1>&2 + echo -e "\033[0;34m- $@\033[0m" 1>&2 } tmp_dir=$(mktemp -d -t innernet-tests-XXXXXXXXXX)