-
Notifications
You must be signed in to change notification settings - Fork 6
36 lines (34 loc) · 908 Bytes
/
ci.yml
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
32
33
34
35
36
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.18
uses: actions/setup-go@v3
with:
go-version: 1.18
- uses: actions/checkout@v3
- name: Installer linter (golangci)
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v${GOLANGCI_LINT_VERSION}
env:
GOLANGCI_LINT_VERSION: '1.46.2'
- name: Get dependencies
run: go mod vendor
env:
GO111MODULE: 'on'
- name: Test
run: make test
- name: Lint
run: make lint
- name: Build
run: |
curl -sL https://git.io/goreleaser | head -n -2 | bash
tar -xf /tmp/goreleaser.tar.gz -C $(go env GOPATH)/bin
goreleaser --snapshot --skip-sign