Skip to content

Commit d3befef

Browse files
author
Ricky White
authored
Added GitHub Action for testing (#6)
* Added GitHub Action for testing - Triggered when there is a push or pr to main. Can also be triggered manually. - Uses the go version as specified in the go.mod file. * Add test build to workflow
1 parent 3773d3c commit d3befef

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Set up Go
17+
uses: actions/setup-go@v4
18+
with:
19+
go-version-file: "go.mod"
20+
21+
- name: Test Build
22+
run: go build -v -o ssh-sign ./cmd/ssh-sign/main.go
23+
24+
- name: Test
25+
run: go test -v ./...

0 commit comments

Comments
 (0)