Skip to content

Fixes for Katello repositories and sync_plans #227

Fixes for Katello repositories and sync_plans

Fixes for Katello repositories and sync_plans #227

Workflow file for this run

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