-
-
Notifications
You must be signed in to change notification settings - Fork 134
40 lines (32 loc) · 820 Bytes
/
test.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
name: Go Unit Test
on:
push:
branches: [ master ]
pull_request:
permissions:
contents: read
jobs:
test-and-lint:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Set up Go 1.x
uses: actions/setup-go@v4
with:
go-version: 'stable'
cache: true
- name: Test lib ssh
run: go test -v -cover ./...
working-directory: crypto/ssh
- name: Test sshpiper
run: go test -v -race -cover -tags full ./...
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
args: --timeout=60m -E gofmt --verbose --print-resources-usage --build-tags full
env:
GOGC: "10"