Skip to content

Commit 32efbe7

Browse files
committed
Add GitHub Actions workflow for building and testing Go application
1 parent 8388c5f commit 32efbe7

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/build.yml

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

0 commit comments

Comments
 (0)