Skip to content

Commit b1622f4

Browse files
chore: add GH action tests
Signed-off-by: Sourya Vatsyayan <sourya@deepsource.io>
1 parent edcb1bf commit b1622f4

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.github/workflows/test.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: build-and-test
2+
on:
3+
pull-request:
4+
branches:
5+
- master
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
14+
- name: Set up Go
15+
uses: actions/setup-go@v4
16+
with:
17+
go-version: 1.23
18+
19+
- name: Build the binary
20+
run: make build
21+
22+
- name: test-builtin-rules
23+
run: make test-builtin-rules

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,10 @@ fmt:
5757
@echo "Formatting Go files..."
5858
@gofmt -s -w .
5959
@echo "Done."
60+
61+
build:
62+
CGO_ENABLED=1 go build -o bin/globstar ./cmd/globstar
63+
64+
test-builtin-rules:
65+
echo "Testing built-in rules..."
66+
./bin/globstar test -d checkers/

0 commit comments

Comments
 (0)