Merge pull request #71 from minamijoyo/pin-gha #185
This file contains hidden or 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 | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
branches: | |
- master | |
paths-ignore: | |
- '**.md' | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 5 | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macOS-latest] | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0 | |
with: | |
go-version-file: '.go-version' | |
- name: test | |
run: make test | |
testacc: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
strategy: | |
matrix: | |
terraform: | |
- 1.9.0 | |
- 1.8.5 | |
env: | |
TERRAFORM_VERSION: ${{ matrix.terraform }} | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: docker build | |
run: docker compose build | |
- name: start localstack | |
run: | | |
docker compose up -d localstack | |
docker compose run --rm dockerize -wait tcp://localstack:4566 -timeout 60s | |
docker compose exec -T localstack /docker-entrypoint-initaws.d/wait_s3_bucket_exists.sh | |
- name: terraform --version | |
run: docker compose run --rm tfedit terraform --version | |
- name: testacc | |
run: docker compose run --rm tfedit make testacc |