Hotfix gcp provider #142
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pr Tests | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
tests: | |
name: Build and run tests | |
runs-on: ubuntu-latest | |
container: golang:1.20.2-alpine | |
steps: | |
- name: Install soft | |
run: | | |
apk add make bash jq curl git zip | |
wget https://releases.hashicorp.com/terraform/1.4.4/terraform_1.4.4_linux_amd64.zip | |
unzip terraform_1.4.4_linux_amd64.zip | |
cp terraform /usr/local/bin/ | |
- name: Code checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 2 | |
- name: Build | |
run: | | |
git config --global --add safe.directory /__w/cluster.dev/cluster.dev | |
git fetch --prune --unshallow --tags && make && cp ./bin/linux-amd64/cdev /usr/local/bin/ | |
- name: Run tests | |
run: cd tests/test-project/ && cdev plan --tf-plan -l debug && cdev apply --force -l debug && cdev destroy --force -l debug | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |