Skip to content

Bump github.com/maas/gomaasclient from 0.0.0-20231117143343-dfb55c0a4c5e to 0.1.0 #230

Bump github.com/maas/gomaasclient from 0.0.0-20231117143343-dfb55c0a4c5e to 0.1.0

Bump github.com/maas/gomaasclient from 0.0.0-20231117143343-dfb55c0a4c5e to 0.1.0 #230

Workflow file for this run

# Terraform Provider testing workflow.
name: Tests
# This GitHub action runs your tests for each pull request and push.
# Optionally, you can turn it on using a schedule for regular testing.
on:
pull_request:
paths-ignore:
- 'README.md'
- 'docs'
- 'examples'
push:
branches:
- "main"
paths-ignore:
- 'README.md'
- 'docs'
- 'examples'
# Testing only needs permissions to read the repository contents.
permissions:
contents: read
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
cache: true
- run: make lint
# Ensure project builds before running testing matrix
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
cache: true
- run: go mod download
- run: go build -v .
generate:
name: Check if generated data is up to date
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
cache: true
- run: go generate ./...
- 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: make generate_docs
- run: |
git diff --compact-summary --exit-code || \
(echo; echo "Unexpected difference in directories after docs generation. Run 'make generate_docs' command and commit."; exit 1)
# Run unit tests
test:
name: Terraform Provider Unit Tests
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
cache: true
- run: make test