init goreleaser (#169)
* init goreleaser add dockerfile add fetch tag set next to snapshot remove generate skip val add auto ver revert ver revert ver force tag * self tag * self tag * always tag * change perm * final
This commit is contained in:
parent
3a8de2746e
commit
fefbb0ec99
8 changed files with 303 additions and 18 deletions
40
.github/workflows/test.yml
vendored
Normal file
40
.github/workflows/test.yml
vendored
Normal file
|
|
@ -0,0 +1,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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue