forked from gcash/bchd
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (31 loc) · 769 Bytes
/
main.yml
File metadata and controls
31 lines (31 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: build
on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: stable
- name: Install golangci-lint
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.62.2
env:
GO111MODULE: on
- name: Run goclean.sh
run: ./goclean.sh
env:
GO111MODULE: on
- name: Go Build/Install
run: go build && go install . ./cmd/...
env:
GO111MODULE: on