Skip to content

Test mocks

Test mocks #51

Workflow file for this run

name: ✅ Tests
on:
push:
paths:
- 'pkg/**'
- 'cmd/**'
- 'test/**'
- 'go.mod'
- 'go.sum'
jobs:
tests:
strategy:
matrix:
go_version: [1.21, 1.22, 1.23]
runs-on: ubuntu-latest
env:
DISPLAY: ':99.0'
defaults:
run:
shell: bash
steps:
- name: Install dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y libasound2-dev libgl1-mesa-dev libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev libxxf86vm-dev
- name: Xvfb
run: |
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go_version }}
- name: Tests
run: go test -v ./...
- name: Command buld
run: go build -o /tmp/golem cmd/golem/main.go