From 81fedc7a3a5f9b8c4809babc5c55c8c26eafce05 Mon Sep 17 00:00:00 2001 From: Masayuki Morita Date: Thu, 17 Jun 2021 09:53:08 +0900 Subject: [PATCH] Run acceptance tests on GitHub Actions --- .github/workflows/test.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 50ccde4..30f9216 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -28,3 +28,23 @@ jobs: ${{ runner.os }}-go- - name: test run: make check + testacc: + runs-on: ubuntu-latest + strategy: + matrix: + terraform: + - 1.0.0 + - 0.15.5 + - 0.14.11 + - 0.13.7 + - 0.12.31 + env: + TERRAFORM_VERSION: ${{ matrix.terraform }} + steps: + - uses: actions/checkout@v2 + - name: docker build + run: docker-compose build + - name: terraform --version + run: docker-compose run --rm tfschema terraform --version + - name: testacc + run: docker-compose run --rm tfschema make testacc