Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "Test source code"

on:
workflow_dispatch:
push:
pull_request:

jobs:
RunGoTests:
runs-on: ubuntu-latest
steps:
- name: Set up LibGL, Mesa & X11 libraries
run: |
sudo apt-get --allow-releaseinfo-change update
sudo apt-get install -y libgtk-3-dev libasound2-dev libxxf86vm-dev
- name: Set up Go environment
uses: actions/setup-go@v3
with:
go-version: '1.19.x'
- name: Checkout out source code
uses: actions/[email protected]
with:
fetch-depth: 0
submodules: 'recursive'
- name: Run Go test
run: go test -race -v ./...