Skip to content

Commit

Permalink
ci: add Go unit test CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jyyi1 committed Feb 5, 2024
1 parent c0230af commit e96fc30
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/go_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Go Test

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '${{ github.workspace }}/go.mod'

- name: Unit Test
run: go test -v -race ./...

0 comments on commit e96fc30

Please sign in to comment.