Skip to content

Merge pull request #135 from maximilien/build/129-increase-stale-time #185

Merge pull request #135 from maximilien/build/129-increase-stale-time

Merge pull request #135 from maximilien/build/129-increase-stale-time #185

Workflow file for this run

name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: '>=1.17'
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- 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: Format
run: go fmt ./...
- name: Build
run: ./bin/build
- name: Test
run: |
export GOPATH=$(go env GOPATH)/bin
./bin/test