-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (39 loc) · 869 Bytes
/
test.yaml
File metadata and controls
40 lines (39 loc) · 869 Bytes
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
---
name: "Build & Test"
on: # yamllint disable-line rule:truthy
push:
branches:
- "main"
pull_request:
branches:
- "*"
merge_group:
types:
- "checks_requested"
env:
GO_VERSION: "~1.24.0"
jobs:
unit:
name: "Unit Tests"
runs-on: "depot-ubuntu-24.04"
steps:
- uses: "actions/checkout@v4"
- uses: "authzed/actions/setup-go@main"
with:
go-version: "${{ env.GO_VERSION }}"
- name: "Unit tests"
run: "go run mage.go test:unit"
# Build validation
build:
name: "Build"
runs-on: "depot-ubuntu-24.04"
needs: unit
steps:
- uses: "actions/checkout@v4"
- uses: "authzed/actions/setup-go@main"
with:
go-version: "${{ env.GO_VERSION }}"
- name: "Build"
run: "go build ./..."
- name: "Vet"
run: "go vet ./..."