Make CIDR immutable for network resource (#240) #549
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: Go | |
on: [push] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
go-version: [1.20.x] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
- name: Build | |
run: go build -v . | |
- name: Vet | |
run: go vet | |
- name: Make test | |
run: make test | |
# acceptance: | |
# # Runs the acceptance test suite using the `Acceptance Tests` environment. | |
# # The enviroment should be configured to require reviewers approve the | |
# # step. This allows the tests to be added as a check to PRs. | |
# # | |
# # This job has the `continue-on-error` set to true which prevents blocking | |
# # PRs if the tests fail. | |
# if: github.ref_name == 'master' | |
# needs: build | |
# runs-on: ubuntu-latest | |
# environment: | |
# name: Acceptance Tests | |
# concurrency: acceptance_tests | |
# continue-on-error: true | |
# steps: | |
# - name: Install Go | |
# uses: actions/setup-go@v2 | |
# with: | |
# go-version: 1.18.x | |
# - name: Checkout | |
# uses: actions/checkout@v2 | |
# - name: make testacc | |
# run: make testacc | |
# env: | |
# CIVO_TOKEN: ${{ secrets.ACCEPTANCE_TESTS_TOKEN }} | |
# CIVO_REGION: "LON1" |