steam.sh 346 B

12345678910111213
  1. export PATH=$PATH:/usr/local/go/bin
  2. export CGO_CFLAGS=-std=gnu99
  3. export DISPLAY=:99.0
  4. # Install Go
  5. curl --location --remote-name https://golang.org/dl/${GO_FILENAME}
  6. rm -rf /usr/local/go && tar -C /usr/local -xzf ${GO_FILENAME}
  7. # Run X
  8. Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
  9. # Run the tests
  10. env GITHUB_ACTIONS=true go test -v ./...