mirror of
https://github.com/jakejarvis/npqueue.git
synced 2025-04-26 15:18:27 -04:00
41 lines
958 B
YAML
41 lines
958 B
YAML
name: Go
|
|
on: [push]
|
|
jobs:
|
|
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- name: Set up Go 1.12
|
|
uses: actions/setup-go@v1
|
|
with:
|
|
go-version: 1.12
|
|
id: go
|
|
|
|
- name: Check out code
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Download and install golangci-lint
|
|
run: |
|
|
curl -L https://github.com/golangci/golangci-lint/releases/download/v1.17.1/golangci-lint-1.17.1-linux-amd64.tar.gz | tar xzf - -C /tmp
|
|
sudo mv /tmp/golangci-lint-1.17.1-linux-amd64/golangci-lint /usr/local/bin/golangci-lint
|
|
|
|
- name: Run the linter
|
|
run: golangci-lint run
|
|
|
|
- name: Install deps
|
|
run: go mod download
|
|
|
|
- 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 .
|
|
|