Skip to content

Fix homebrew formula path - formulas are in root directory #5

Fix homebrew formula path - formulas are in root directory

Fix homebrew formula path - formulas are in root directory #5

Workflow file for this run

name: Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
go: ['1.21', '1.22', '1.23']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Install dependencies (Ubuntu)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y pkg-config build-essential libsdl2{,-image,-mixer,-ttf,-gfx}-dev
- name: Install dependencies (macOS)
if: runner.os == 'macOS'
run: |
brew install sdl2{,_image,_mixer,_ttf,_gfx} pkg-config
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...