-
-
Notifications
You must be signed in to change notification settings - Fork 134
44 lines (36 loc) · 1.01 KB
/
go.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
name: Go Unit Test
on:
push:
branches: [ master ]
pull_request:
types: [assigned, opened, synchronize, reopened]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: 'recursive'
- name: Set up Go 1.x
uses: actions/setup-go@v4
with:
go-version: 'stable'
cache: true
- uses: dotnet/nbgv@master
with:
setAllVars: 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: create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: github.ref == 'refs/heads/master'
run: |
gh release create -d --generate-notes v$NBGV_SimpleVersion
gh release list | grep Draft | tail -n +3 | cut -f 1 | xargs -r -L 1 gh release delete --yes