Skip to content

Enable Fir compatibility for review app config #506

Enable Fir compatibility for review app config

Enable Fir compatibility for review app config #506

name: Acceptance
on:
pull_request:
branches:
- master
- fir-compatibility
paths-ignore:
- 'docs/**'
- '**.md'
push:
branches:
- master
paths-ignore:
- 'docs/**'
- '**.md'
jobs:
tests:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
cache: true
- name: Install Terraform
run: |
set -eu
terraform_version="1.6.6"
set +e
terraform_bin="$(which terraform)"
set -e
if [ -z "$terraform_bin" ]
then
terraform_bin="/usr/local/bin/terraform"
echo "Installing Terraform ($terraform_bin)"
else
echo "Replacing Terraform ($terraform_bin)"
fi
echo "Downloading version $terraform_version"
curl -s -L "https://releases.hashicorp.com/terraform/${terraform_version}/terraform_${terraform_version}_linux_amd64.zip" > "terraform-bin.zip"
echo "Unzipping archive"
unzip -p terraform-bin.zip > terraform-bin
echo "Moving into place"
sudo mv terraform-bin "$terraform_bin"
echo "Making executable"
sudo chmod +x "$terraform_bin"
echo "Cleaning-up"
rm terraform-bin.zip
echo "Installed: $(eval "$terraform_bin version") ($terraform_bin)"
- name: Run make fmt
if: runner.os != 'Windows'
run: |
make fmt
git diff --exit-code; code=$?; git checkout -- .; (exit $code)
- name: Run go vet
run: go vet ./...
- name: Run tests
run: |
echo "Using: $(terraform version) ($(which terraform))"
make testacc TEST="./heroku/"
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
HEROKU_ORGANIZATION: terraform-ci-test-team
HEROKU_SPACES_ORGANIZATION: terraform-ci-test-team
HEROKU_TEAM: terraform-ci-test-team
HEROKU_EMAIL: [email protected]
HEROKU_TEST_USER: [email protected]
HEROKU_NON_ADMIN_TEST_USER: [email protected]
HEROKU_SLUG_ID: f2eba78f-25c9-476b-8998-2325241b980a
HEROKU_USER_ID: aaaa7bc7-7de5-410f-a60c-3741d2c355d1
# GOFLAGS: "-mod=vendor"
# TF_LOG: DEBUG