name: Acc Tests on: push: branches: - master - "release/**" pull_request: types: ['opened', 'synchronize'] paths: - '**.go' - go.mod - '.github/workflows/**' env: GOPROXY: https://proxy.golang.org,direct DEBIAN_FRONTEND: noninteractive DOCKER_CE_VERSION: "5:20.10.7~3-0~ubuntu-focal" GO_VERSION: "1.16" jobs: acc-test: runs-on: ubuntu-20.04 strategy: fail-fast: true matrix: terraform_version: - "0.12.31" - "0.13.7" - "0.14.11" - "0.15.5" - "1.0.1" steps: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: go-version: ${{ env.GO_VERSION }} - name: Setup cookies run: | cat /etc/issue bash scripts/gogetcookie.sh - name: Setup docker version ${{ env.DOCKER_CE_VERSION }} run: | sudo apt-get update sudo apt-get -y install apt-transport-https ca-certificates curl gnupg-agent software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" sudo apt-get update sudo apt-get -y install docker-ce=${DOCKER_CE_VERSION} docker version sudo service docker restart - name: Run acceptance tests run: make testacc env: TF_ACC_TERRAFORM_VERSION: ${{ matrix.terraform_version }}