Merge pull request #57 from minamijoyo/update-checkout-to-v4 #97
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: 10 | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macOS-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version-file: '.go-version' | |
- name: test | |
run: make test | |
testacc_terraform: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
strategy: | |
matrix: | |
terraform: | |
- 1.6.6 | |
- 0.15.5 | |
- 0.14.11 | |
- 0.13.7 | |
- 0.12.31 | |
env: | |
TERRAFORM_VERSION: ${{ matrix.terraform }} | |
TFSCHEMA_TF_MODE: terraform | |
steps: | |
- uses: actions/checkout@v4 | |
- name: docker build | |
run: docker-compose build | |
- name: terraform --version | |
run: docker-compose run --rm tfschema terraform --version | |
- name: testacc | |
run: docker-compose run --rm tfschema make testacc | |
testacc_opentofu: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
strategy: | |
matrix: | |
opentofu: | |
- 1.6.0 | |
env: | |
OPENTOFU_VERSION: ${{ matrix.opentofu }} | |
TFSCHEMA_TF_MODE: opentofu | |
steps: | |
- uses: actions/checkout@v4 | |
- name: docker build | |
run: docker-compose build | |
- name: opentofu --version | |
run: | | |
docker-compose run --rm tfschema tofu --version | |
- name: testacc | |
run: docker-compose run --rm tfschema make testacc |