Skip to content

example/internal/texteditor: show clipboard hotkeys in the Edit menu #2052

example/internal/texteditor: show clipboard hotkeys in the Edit menu

example/internal/texteditor: show clipboard hotkeys in the Edit menu #2052

Workflow file for this run

name: Test
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go: ["1.25.x", "1.26.x"]
name: Test with Go ${{ matrix.go }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
DISPLAY: ":99.0"
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Install dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install libgl1 libgl1-mesa-dri libx11-6 libxcursor1 libxext6 libxi6 libxinerama1 libxrandr2 libxrender1 libgtk-3-0
- name: Xvfb
if: runner.os == 'Linux'
run: |
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- name: go vet (macOS)
if: runner.os == 'macOS'
run: |
go list ./... | grep -v -x -F -f .github/workflows/govetblock_darwin.txt | xargs go vet -v
- name: go vet (Windows)
if: runner.os == 'Windows'
run: |
go list ./... | grep -v -x -F -f .github/workflows/govetblock_windows.txt | xargs go vet -v
- name: go vet (Linux)
if: runner.os == 'Linux'
run: |
go list ./... | grep -v -x -F -f .github/workflows/govetblock_linux.txt | xargs go vet -v
- name: go vet (errcheck)
run: |
go build ./internal/vettool
go vet -vettool=./vettool${{ runner.os == 'Windows' && '.exe' || '' }} -v ./...
- name: go build
run: |
go build -v ./...
env GOOS=darwin GOARCH=amd64 go build -v ./...
env GOOS=darwin GOARCH=arm64 go build -v ./...
env GOOS=freebsd GOARCH=amd64 go build "-gcflags=github.com/ebitengine/purego/internal/fakecgo=-std" -v ./...
env GOOS=freebsd GOARCH=arm64 go build "-gcflags=github.com/ebitengine/purego/internal/fakecgo=-std" -v ./...
env GOOS=js GOARCH=wasm go build -v ./...
env GOOS=linux GOARCH=386 go build -v ./...
env GOOS=linux GOARCH=amd64 go build -v ./...
env GOOS=linux GOARCH=arm go build -v ./...
env GOOS=linux GOARCH=arm64 go build -v ./...
env GOOS=netbsd GOARCH=amd64 go build -v ./...
env GOOS=netbsd GOARCH=arm64 go build -v ./...
env GOOS=windows GOARCH=386 go build -v ./...
env GOOS=windows GOARCH=amd64 go build -v ./...
env GOOS=windows GOARCH=arm64 go build -v ./...
- name: go test
run: |
go test -v ./...