-
Notifications
You must be signed in to change notification settings - Fork 8
30 lines (30 loc) · 991 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
# This file adheres to the YAML5 style.
{
"name": "Go",
"on": ["push", "pull_request"],
"jobs": {
"build": {
"name": "Build",
"runs-on": "ubuntu-latest",
"env": {
"DISPLAY": ":99.0",
},
"steps": [
{
"name": "Set up Go 1.19",
"uses": "actions/setup-go@v1",
"with": {"go-version": 1.19},
"id": "go",
},
{
"name": "Set up dependencies",
"run": "sudo -E apt-add-repository -y 'ppa:ubuntu-toolchain-r' && sudo apt-get install libasound2-dev libglew-dev libgles2-mesa-dev libalut-dev libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev libxxf86vm-dev",
},
{"name": "Xvfb", "run": "Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &"},
{"name": "Check out code into the Go module directory", "uses": "actions/checkout@v1"},
{"name": "Test", "run": "make test"},
{"name": "Linter", "run": "make lint"},
],
},
},
}