-
Notifications
You must be signed in to change notification settings - Fork 89
52 lines (41 loc) · 1.45 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
52
name: Go
on:
push:
branches: [main]
pull_request:
# This guards against unknown PR until a community member vet it and label it.
types: [ labeled ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.21", "1.22"]
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Get dependencies
run: go get -v -t -d ./...
# designed to only run on linux
# - name: Format Check
# run: if [ $(gofmt -l -s . | wc -l) -ne 0 ]; then echo "fmt failed"; exit 1; fi
- name: Build
run: go build ./apps/...
- name: Unit Tests
run: go test -race -short ./apps/cache/... ./apps/confidential/... ./apps/public/... ./apps/internal/...
# Intergration tests runs on ADO
# - name: Integration Tests
# run: go test -race ./apps/tests/integration/...
# env :
# clientId: ${{ secrets.LAB_APP_CLIENT_ID }}
# clientSecret: ${{ secrets.LAB_APP_CLIENT_SECRET }}
# oboConfidentialClientId: ${{ secrets.OBO_CONFIDENTIAL_APP_CLIENT_ID }}
# oboConfidentialClientSecret: ${{ secrets.OBO_CONFIDENTIAL_APP_CLIENT_SECRET }}
# oboPublicClientId: ${{ secrets.OBO_PUBLIC_APP_CLIENT_ID }}
# CI: ${{secrets.ENABLECI}}