-
Notifications
You must be signed in to change notification settings - Fork 55
56 lines (49 loc) · 1.43 KB
/
go.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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"