-
Notifications
You must be signed in to change notification settings - Fork 59
29 lines (28 loc) · 903 Bytes
/
main.yml
File metadata and controls
29 lines (28 loc) · 903 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
name: Main
on: [push, pull_request]
jobs:
tests:
name: ${{matrix.go-version}} ${{matrix.os}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
go-version: [1.14, 1.16]
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- name: Install dependencies (linux)
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo apt-get update
sudo apt-get install -y mesa-utils mesa-common-dev libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libgl1-mesa-dev libxxf86vm-dev libglfw3-dev
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: ${{matrix.go-version}}
- name: Print go version
run: go version
- name: Check out module
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Run tests
run: go test -v -race ./...