mirror of
https://github.com/nwtgck/handy-sshd.git
synced 2025-06-08 15:13:17 +00:00
ci: test
This commit is contained in:
parent
aac75f81a6
commit
35c29a6de2
1 changed files with 4 additions and 3 deletions
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
|
@ -3,12 +3,11 @@ name: CI
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_multi_platform:
|
test:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Go 1.x
|
- uses: actions/setup-go@v4
|
||||||
uses: actions/setup-go@v4
|
|
||||||
with:
|
with:
|
||||||
go-version: "1.20"
|
go-version: "1.20"
|
||||||
- name: Build for multi-platform
|
- name: Build for multi-platform
|
||||||
|
@ -29,3 +28,5 @@ jobs:
|
||||||
# Build
|
# Build
|
||||||
CGO_ENABLED=0 go build -o "${BUILD_PATH}/handy-sshd${EXTENSION}" main/main.go
|
CGO_ENABLED=0 go build -o "${BUILD_PATH}/handy-sshd${EXTENSION}" main/main.go
|
||||||
done
|
done
|
||||||
|
- name: Test
|
||||||
|
run: go test -v ./...
|
||||||
|
|
Loading…
Add table
Reference in a new issue