You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
653 B
35 lines
653 B
2 years ago
|
name: build
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- master
|
||
|
pull_request:
|
||
4 years ago
|
jobs:
|
||
|
build:
|
||
|
name: Build
|
||
4 years ago
|
runs-on: ubuntu-latest
|
||
4 years ago
|
strategy:
|
||
|
matrix:
|
||
2 years ago
|
goVer: [1.19]
|
||
4 years ago
|
|
||
|
steps:
|
||
|
- name: Set up Go ${{ matrix.goVer }}
|
||
|
uses: actions/setup-go@v1
|
||
|
with:
|
||
|
go-version: ${{ matrix.goVer }}
|
||
|
id: go
|
||
|
|
||
|
- name: Check out code into the Go module directory
|
||
|
uses: actions/checkout@v2
|
||
|
|
||
|
- name: Get dependencies
|
||
|
run: |
|
||
|
go get -v -t -d ./...
|
||
|
go get gopkg.in/check.v1
|
||
2 years ago
|
|
||
|
- name: Format
|
||
|
run: diff -u <(echo -n) <(gofmt -d .)
|
||
|
|
||
4 years ago
|
- name: Build
|
||
3 years ago
|
run: go build -v ./...
|