-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (34 loc) · 963 Bytes
/
ci.yml
File metadata and controls
34 lines (34 loc) · 963 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,pull_request]
jobs:
lint:
name: Golangci-lint
runs-on: ubuntu-18.04
steps:
- name: Set up Go 1.15
uses: actions/setup-go@v1
with:
go-version: 1.15
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
# - name: Intsall Golangci-lint
# run: curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b . v1.16.0
# - name: Lint
# run: ./golangci-lint run --fix
- name: Run Golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.34.1
test:
name: Unit Testing
runs-on: ubuntu-18.04
steps:
- name: Set up Go 1.15
uses: actions/setup-go@v2
with:
go-version: 1.15
- name: Checkout
uses: actions/checkout@v2
- name: Go Test
run: go test -v ./...