Skip to content

Commit 1ee2cd4

Browse files
authored
Merge pull request #114 from google/cuixq-patch-1
ci: set up a workflow to run tests
2 parents 66e2aed + 8890339 commit 1ee2cd4

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/go.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
go:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Check out code
14+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
15+
16+
- name: Set up Go
17+
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
18+
with:
19+
go-version: stable
20+
21+
- name: Run tests in maven
22+
working-directory: ./util/maven
23+
run: go test ./...
24+
25+
- name: Run tests in resolve
26+
working-directory: ./util/resolve
27+
run: go test ./...
28+
29+
- name: Run tests in semver
30+
working-directory: ./util/semver
31+
run: go test ./...

0 commit comments

Comments
 (0)