-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 800 Bytes
/
test.yml
File metadata and controls
36 lines (34 loc) · 800 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
32
33
34
35
36
name: Test
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- uses: actions/checkout@v2
- name: instal linter
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.45.2
- name: Lint
run : golangci-lint run cmd internal/**
build:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- uses: actions/checkout@v2
- name: Install toml reader
run: go mod download github.com/BurntSushi/toml
- name: Build
run:
go build ./cmd/main.go