Skip to content

Bloxone provider

Bloxone provider #18

Workflow file for this run

# This GitHub action runs your tests for each commit push and/or PR.
name: PRBuilder
on:
pull_request:
paths-ignore:
- 'README.md'
- 'docs/**'
- 'examples/**'
jobs:
# ensure the code builds...
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
go-version: '1.19'
- name: go mod
run: |
go mod tidy
git diff --exit-code -- go.mod go.sum || \
(echo; echo "Unexpected difference in go.mod/go.sum files. Run 'go mod tidy' command or revert any go.mod/go.sum changes and commit."; exit 1)
- name: Build
run: go build -v ./...
- name: Test
run: go test
lint:
name: Go Linter
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
go-version: '1.19'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
args: --timeout=10m --max-issues-per-linter 0 --max-same-issues 0
tfproviderlint:
name: Terraform Provider Lint
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: bflad/tfproviderlint-github-action@master
with:
args: ./...