-
Notifications
You must be signed in to change notification settings - Fork 21
51 lines (42 loc) · 1.12 KB
/
ci_backend_go.yaml
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: CI GO Backend
on:
push:
branches: [main]
paths:
- ".github/workflows/ci_backend_go.yaml"
- "backend-go/**"
pull_request:
branches: [main]
paths:
- ".github/workflows/ci_backend_go.yaml"
- "backend-go/**"
jobs:
test:
runs-on: ubuntu-latest
env:
working-directory: ./backend-go
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Install Tools
run: make tools
working-directory: ${{ env.working-directory }}
- name: Install Dependencies
run: go mod download
working-directory: ${{ env.working-directory }}
- name: Format
run: make fmt
working-directory: ${{ env.working-directory }}
- name: Lint
run: make lint
working-directory: ${{ env.working-directory }}
- name: Test
run: make test
working-directory: ${{ env.working-directory }}
- name: Build
run: make build
working-directory: ${{ env.working-directory }}