izapple2/.github/workflows/go.yml

43 lines
783 B
YAML
Raw Permalink Normal View History

2020-10-03 21:44:34 +00:00
name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
2022-01-28 17:22:36 +00:00
- name: Install SDL2
run: |
2022-05-11 20:49:37 +00:00
sudo apt-get update
2022-01-28 17:22:36 +00:00
sudo apt-get install libsdl2-dev
2020-10-03 21:44:34 +00:00
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
2022-04-18 14:10:25 +00:00
go-version: ^1.18
2020-10-03 21:44:34 +00:00
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Build
run: go build -v .
- name: Test
2022-01-28 17:14:30 +00:00
run: go test -v ./...