Fix Katello product resource API call #225
Workflow file for this run
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 | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- '**.go' | |
pull_request: | |
branches: | |
- master | |
paths: | |
- '**.go' | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19.x | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
test: | |
strategy: | |
matrix: | |
go-version: [1.18.x,1.19.x] | |
platform: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Install Go | |
if: success() | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Run go code tests | |
run: go test ./... -v -covermode=count | |
- name: Compile terraform provider binary | |
run: go build | |
- name: Install terraform | |
uses: hashicorp/setup-terraform@v2 | |
- name: Test provider integrity | |
run: terraform plan -input=false -no-color | |
working-directory: ./examples/verify_provider | |
env: | |
TF_CLI_CONFIG_FILE: tfoverriderc |