Skip to content

Commit d613afc

Browse files
authored
Merge pull request #9 from ziccardi/GITHUB_WORKFLOW
chore: add github workflow
2 parents 80821a5 + aa82f9b commit d613afc

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
go-version: [ 'oldstable', 'stable' ]
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Setup Go ${{ matrix.go-version }}
15+
uses: actions/setup-go@v5
16+
with:
17+
go-version: ${{ matrix.go-version }}
18+
- name: Build
19+
run: make build
20+
- name: Test
21+
run: make test

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/bin
2+
/asyncroutinemanager

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@ APP_NAME=asyncroutinemanager
44

55
all: build
66

7+
ginkgo:
8+
go install github.com/onsi/ginkgo/v2/ginkgo
9+
10+
tools: ginkgo
11+
712
build:
813
go build -o $(APP_NAME)
914

10-
test:
15+
test: tools
1116
ginkgo -r -v
1217

1318
clean:

0 commit comments

Comments
 (0)