-
Notifications
You must be signed in to change notification settings - Fork 72
51 lines (51 loc) · 1.35 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
name: Terraform Provider CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
checkup:
name: Checkup
runs-on: ubuntu-latest
env:
GOARCH: amd64
GOOS: linux
steps:
- name: Check out the repository
uses: actions/checkout@v3
- name: Run fmt
uses: aminueza/go-github-action/fmt@master
- name: Run sec
uses: aminueza/go-github-action/sec@master
with:
path: minio/...
- name: Run vet
uses: aminueza/go-github-action/vet@master
- name: Run errcheck
uses: aminueza/go-github-action/errcheck@master
with:
path: minio/...
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: "go.mod"
- uses: dominikh/[email protected]
with:
version: "2022.1.1"
install-go: false
- name: Build the docker-compose stack
run: docker-compose up -d minio
- uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.4.2
terraform_wrapper: false
- name: Install Task
uses: arduino/setup-task@v1
with:
version: "3.x"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run install task
run: task install
- name: Run test task
run: task test