-
Notifications
You must be signed in to change notification settings - Fork 94
44 lines (35 loc) · 748 Bytes
/
pr.yml
File metadata and controls
44 lines (35 loc) · 748 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
41
42
43
44
name: Build and Test
on:
push:
branches:
- master
pull_request: {}
permissions:
contents: read
jobs:
unit:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Unit Test
run: go test ./pkg/... -cover -tags=test
ci:
runs-on: ubuntu-latest
env:
ARCH: amd64
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build binary
run: make build
- name: Validate
run: make validate
- name: Package
run: make package
- name: E2E Test
run: ./scripts/e2e