-
Notifications
You must be signed in to change notification settings - Fork 69
51 lines (51 loc) · 1.5 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: [main]
pull_request:
branches: [main]
jobs:
checkup:
name: Checkup
runs-on: ubuntu-latest
env:
GOARCH: amd64
GOOS: linux
steps:
- name: Check out the repository
uses: actions/checkout@v4
- 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: "2023.1.6"
install-go: false
- name: Build the docker-compose stack
run: docker-compose up -d minio secondminio thirdminio fourthminio
- uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.5.7
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: sudo apt install jq -y && sed "s/172.17.0.1/`docker network inspect bridge | jq -r .[].IPAM.Config[].Gateway`/" Taskfile.yml && task test