-
Notifications
You must be signed in to change notification settings - Fork 75
37 lines (31 loc) · 952 Bytes
/
main.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
name: Main
on: [push, pull_request]
jobs:
tests:
name: ${{matrix.go-version}} ${{matrix.os}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
go-version: ['stable']
os: [macos-latest, windows-latest, ubuntu-latest]
include:
- os: ubuntu-latest
go-version: ''
steps:
- name: Install dependencies (linux)
if: ${{ matrix.os == 'ubuntu-latest' }}
run: sudo apt-get update && sudo apt-get install libgl-dev libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev libxxf86vm-dev xvfb
- name: Check out module
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{matrix.go-version}}
go-version-file: go.mod
- name: Test build
run: go build -v ./...
- name: Run tests
if: ${{ matrix.os == 'ubuntu-latest' }}
run: xvfb-run go test -v