Skip to content

Commit

Permalink
ci: add unit-test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DaruZero committed Apr 20, 2023
1 parent 1dfdcac commit 228d4d9
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflow/unit-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Go Test

on:
push:
paths:
- "!.github/"
- "!.gitignore"
- "!**.md"
- "go.mod"
- "go.sum"
- ".github/workflows/unit-test.yml"

jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.19'
- name: Get dependencies
run: go get -v -t -d ./...
- name: Test
run: go test -v ./...

0 comments on commit 228d4d9

Please sign in to comment.