-
-
Notifications
You must be signed in to change notification settings - Fork 12
46 lines (37 loc) · 1.18 KB
/
test.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
name: go test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v3
- name: Set up Go
id: setup_go
uses: actions/setup-go@v4
with:
check-latest: true
- name: Install Go dependencies
id: install_go_deps
run: |
go install golang.org/x/tools/cmd/stringer@latest
go install github.com/fyne-io/fyne-cross@latest
go install golang.org/x/text/cmd/gotext@latest
go install github.com/matryer/moq@latest
- name: Install dependencies
id: install_linux_deps
run: sudo apt install -y desktop-file-utils gcc libgl1-mesa-dev libegl1-mesa-dev libgles2-mesa-dev libx11-dev xorg-dev
- name: Update VERSION
id: update_version
shell: sh
run: cd internal/agent/config && printf %s $(git tag | tail -1) > VERSION
- name: Run go generate
id: go_generate
run: go generate -v ./...
- name: Run go build
id: go_build
run: go build -v ./...
- name: Run go test
id: go_test
run: go test -skip '.*[bB]us.*' -v ./...