-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 948 Bytes
/
ci.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
name: Run unit tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test_compile_rest_application:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.21.x'
- name: Install dependencies
run: go mod tidy
- name: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o webhook adapters/rest/*.go
test_compile_docker_image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Go
run: |
make build
running_all_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.21.x'
- name: Install dependencies
run: go mod tidy
- name: Test with the Go CLI
run: make test