-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added build and test workflow for PRs
- Loading branch information
1 parent
17a8a43
commit 16ceb8b
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Build and Test Workflow | ||
|
||
on: | ||
push: | ||
branches: [] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | ||
- name: Setup Go | ||
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a | ||
with: | ||
go-version: '1.23' | ||
- name: Test Go | ||
run: go test -v ./... | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | ||
- name: Setup Go | ||
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a | ||
with: | ||
go-version: '1.23' | ||
- name: Build Go | ||
run: go build ./... |