-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (32 loc) · 748 Bytes
/
Copy pathtest.yml
File metadata and controls
34 lines (32 loc) · 748 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
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
golangci-main:
name: lint
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: golangci-lint
uses: reviewdog/action-golangci-lint@v1
# with:
# golangci_lint_flags: "--config=../.golangci.yml"
# workdir: .
test:
name: tests
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: '1.16.x'
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test ./...