Skip to content

chore(main): release 0.12.3 #326

chore(main): release 0.12.3

chore(main): release 0.12.3 #326

name: resource pull request tests
on:
pull_request:
branches:
- main
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: './internal/go.mod'
cache: true
- run: go mod download
working-directory: ./internal
- run: go build -v .
generate:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: './internal/go.mod'
cache: true
- run: go generate ./...
working-directory: ./internal
- name: git diff
run: |
git diff --compact-summary --exit-code || \
(echo; echo "Unexpected difference in directories after code generation. Run 'go generate ./...' command and commit."; exit 1)
test:
name: Terraform Provider Acceptance Tests
needs: generate
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
terraform:
- '1.2.*'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: './go.mod'
cache: true
- uses: hashicorp/setup-terraform@v3
with:
terraform_version: ${{ matrix.terraform }}
terraform_wrapper: false
- run: go mod download
working-directory: ./internal
- env:
TF_ACC: "1"
MERAKI_DASHBOARD_API_KEY: ${{ secrets.MERAKI_DASHBOARD_API_KEY }}
run: go test -sweep -v -cover ./internal/provider/
timeout-minutes: 60