-
Notifications
You must be signed in to change notification settings - Fork 37
38 lines (38 loc) · 982 Bytes
/
main.yaml
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
name: GitHub Actions Workflow
on: [push]
jobs:
fmt:
name: Fmt
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.17.10'
- name: Fmt
run: go fmt github.com/pavlo-v-chernykh/keystore-go/v4/...
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Lint
uses: golangci/[email protected]
with:
args: --timeout=5m0s -c .golangci.yaml
version: v1.54.2
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.17.10'
- name: Test
run: go test -cover -count=1 -v github.com/pavlo-v-chernykh/keystore-go/v4/...