-
-
Notifications
You must be signed in to change notification settings - Fork 103
41 lines (41 loc) · 1.01 KB
/
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
name: Go
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install OpenGL
run: |
sudo apt update
sudo apt install -y xorg-dev libgl1-mesa-dev libxkbcommon-x11-dev libwayland-dev libx11-xcb-dev libvulkan-dev
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: Build
run: go build -v ./...
- name: Tests with coverage
run: go test -race -v -count=1 -coverprofile=coverage.out ./...
- name: Upload Code Coverage
uses: codecov/codecov-action@v4
with:
name: codecov
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
continue-on-error: true
with:
version: latest