-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (32 loc) · 786 Bytes
/
ci.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
name: CI
on:
push:
branches:
- master
pull_request:
env:
GO_VERSION: 1.21
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Run front-end linter
run: make lint-front
- name: Build front-end
run: make ci-build-front
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Verify dependencies
run: go mod verify
- name: Build back-end
run: go build -v ./...
- name: Run golangci-lint
uses: golangci/[email protected]
with:
version: latest
- name: Run back-end unit testing
run: go test -race -v ./...