Skip to content

[#144] Use stable sort (#146) #515

[#144] Use stable sort (#146)

[#144] Use stable sort (#146) #515

Workflow file for this run

name: Test
on: [push, pull_request]
jobs:
build:
name: Test
env:
DISPLAY: ':99.0'
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt update
sudo apt install libgl1-mesa-dev xorg-dev libgl-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev
- name: Xvfb
run: |
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.23.x
- name: Check out code
uses: actions/checkout@v3
- name: Cache Go modules
uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Test
run: |
go test -v -coverprofile="coverage.txt" -covermode=atomic ./...