-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (33 loc) · 923 Bytes
/
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
name: Build, run all tests
on:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Get the version
id: get_version
run: echo ::set-output name=tag::$(echo ${GITHUB_SHA:8})
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ^1.21
id: go
- name: Check out code
uses: actions/checkout@v4
with:
submodules: true
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install X11 development libraries
run: |
sudo apt-get update
sudo apt-get install -y libx11-dev
- name: Get and verify dependencies
run: go mod download && go mod verify
- name: Build app to make sure there are zero issues
run: go build -o app ./cmd
- name: Run all tests
run: go test -tags integration -v ./...