forked from andychase/gbajs2
-
Notifications
You must be signed in to change notification settings - Fork 34
38 lines (31 loc) · 836 Bytes
/
auth.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
name: auth
on:
push:
branches: ['**']
pull_request:
branches: ['**']
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./docker/server/auth
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
sparse-checkout: docker/server/auth
sparse-checkout-cone-mode: false
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 'stable'
check-latest: true
cache-dependency-path: |
docker/server/auth/go.sum
- name: Format
run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi
- name: Build
run: CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-w -s'
- name: Test
run: go test --v --cover --useosfs --race ./...