Skip to content

release 0.24.0

release 0.24.0 #154

Workflow file for this run

name: "CI"
on: [push, pull_request]
jobs:
lint:
runs-on: "ubuntu-latest"
steps:
- name: Setup Go environment
uses: actions/setup-go@v3
with:
go-version: "1.20.x"
- name: Get dependencies
run: sudo apt-get update && sudo apt-get install gcc libgl1-mesa-dev libegl1-mesa-dev libgles2-mesa-dev libx11-dev xorg-dev
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Install goimports
run: go install golang.org/x/tools/cmd/goimports@latest
# Checks-out the repository under $GITHUB_WORKSPACE
- uses: actions/checkout@v2
# Run linters
- name: Run go vet
run: go vet ./...
- name: Run goimports
run: test -z $(find . -name '*.go' -type f | xargs goimports -e -d | tee /dev/stderr)
- name: Run staticcheck
run: staticcheck lucor.dev/paw/...
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go-version: ["1.20.x", "1.21.x"]
steps:
- name: Setup Go environment
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Get dependencies
run: sudo apt-get update && sudo apt-get install gcc libgl1-mesa-dev libegl1-mesa-dev libgles2-mesa-dev libx11-dev xorg-dev
if: ${{ runner.os == 'Linux' }}
# Checks-out the repository under $GITHUB_WORKSPACE
- uses: actions/checkout@v2
# Run tests
- run: go test ./...