Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

chore(test): add terratest #3

chore(test): add terratest

chore(test): add terratest #3

Workflow file for this run

on:
pull_request:
branches:
- main
name: terratest
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.22.x"
- name: tfswitch
run: |
wget https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh
chmod 755 install.sh
./install.sh -b ./.bin v1.2.2 # Last arg is the desired tfswitch version
rm install.sh
.bin/tfswitch -b .bin/terraform
.bin/terraform -v
- name: Test with the Go CLI
run: go test -timeout 30s ./test