forked from fsnotify/fsnotify
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.04 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
name: CI
on:
push:
branches:
- preveil
pull_request:
jobs:
test:
name: Unit tests
runs-on: windows-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v2
with:
go-version: 1.13
- name: Check out code into the Go module directory
if: github.event_name == 'push'
uses: actions/checkout@v2
- name: Checkout pr's head commit
if: github.event_name == 'pull_request'
uses: actions/checkout@v2
with:
# on pull_request, we don't want to build on
# the merged commit
ref: ${{ github.event.pull_request.head.sha }}
- name: Run unit tests
run: make test
golangci:
name: Linter
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.40.0
args: --config golangci.yml ./...