Merge pull request #115 from minamijoyo/use-native-compose #134
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: test | |
permissions: | |
contents: read | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 5 | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macOS-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: '.go-version' | |
- name: test | |
run: make test | |
testacc: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
strategy: | |
matrix: | |
terraform: | |
- 1.8.0 | |
- 1.7.5 | |
- 1.6.6 | |
- 0.14.11 | |
env: | |
TERRAFORM_VERSION: ${{ matrix.terraform }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: docker build | |
run: docker compose build | |
- name: terraform --version | |
run: docker compose run --rm tfupdate terraform --version | |
- name: testacc | |
run: docker compose run --rm tfupdate make testacc |