1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-19 19:06:45 -05:00
OpenDiablo2/.github/workflows/pullRequest.yml
Eric Wohltman c7291b6f59
Linter (#427)
* Add golangci-lint config yaml and GitHub Actions workflows

* Update to Go 1.14
2020-06-23 22:15:31 -04:00

34 lines
760 B
YAML

---
name: pull_request
"on": [pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.14
uses: actions/setup-go@v1
with:
go-version: 1.14
id: go
- name: Check out code
uses: actions/checkout@v1
- name: Install dependencies
run: |
sudo apt-get install -y \
libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libgl1-mesa-dev libsdl2-dev libasound2-dev \
> /dev/null 2>&1
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v1.2.1
with:
version: v1.27
- name: Run tests
run: go test -v -race ./...
- name: Build binary
run: go build .