Skip to content

chore(main): release 0.9.1 #1098

chore(main): release 0.9.1

chore(main): release 0.9.1 #1098

Workflow file for this run

---
# Terraform Provider testing workflow.
name: Tests
on:
pull_request:
branches:
- main
paths-ignore:
- 'README.md'
push:
branches:
- main
paths-ignore:
- 'README.md'
# Testing only needs permissions to read the repository contents.
permissions:
contents: read
jobs:
# Ensure project builds before running testing matrix
build:
name: '🏗️ Build'
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Harden Runner
uses: step-security/[email protected]
with:
egress-policy: audit
- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: actions/[email protected]
with:
go-version-file: 'go.mod'
cache: true
- run: go mod download
- run: go build -v .
generate:
name: '🧬 Generate'
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/[email protected]
with:
egress-policy: audit
- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: actions/[email protected]
with:
go-version-file: 'go.mod'
cache: true
- run: go generate ./...
- 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)
# Run acceptance tests in a matrix with Terraform CLI versions
test:
name: Terraform Provider Acceptance Tests
needs: build
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
# list whatever Terraform versions here you would like to support
terraform:
- '1.9.*'
- '1.10.*'
- '1.11.*'
steps:
- name: Harden Runner
uses: step-security/[email protected]
with:
egress-policy: audit
- name: Checkout repository
uses: actions/[email protected]
- uses: actions/[email protected]
with:
go-version-file: 'go.mod'
cache: true
- uses: hashicorp/[email protected]
with:
terraform_version: ${{ matrix.terraform }}
terraform_wrapper: false
- run: go mod download
- env:
TF_ACC: "1"
JAMFPRO_TENANT_ID: ${{ secrets.JAMFPRO_TENANT_ID }}
JAMFPRO_CLIENT_ID: ${{ secrets.JAMFPRO_CLIENT_ID }}
run: go test -v -cover ./internal/
timeout-minutes: 10