From 509acdfb7c445789f0c273acad88b3d93fada6f3 Mon Sep 17 00:00:00 2001 From: Yurii Rochniak Date: Tue, 13 Feb 2024 13:21:30 +0100 Subject: [PATCH] Try parallel + cleanup --- .github/workflows/terratest.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/terratest.yml b/.github/workflows/terratest.yml index f185498..d04993e 100644 --- a/.github/workflows/terratest.yml +++ b/.github/workflows/terratest.yml @@ -36,7 +36,6 @@ jobs: name: terratest runs-on: ubuntu-latest strategy: - max-parallel: 1 matrix: terraform: ['1.5.7', '1.7.3'] steps: @@ -68,3 +67,16 @@ jobs: go mod tidy && echo 'package main' > main.go && go test -v -timeout=30m ./... + + cleanup: + name: cleanup + runs-on: ubuntu-latest + if: always() + strategy: + matrix: + terraform: ['1.5.7', '1.7.3'] + needs: ["terratest"] + steps: + - name: Stop Localstack container + run: docker-compose down +