Skip to content

Commit

Permalink
chore: add unit-test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtARTs36 committed May 23, 2024
1 parent 5df18d0 commit e52fa6b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,20 @@ jobs:
only-new-issues: false # show only new issues if it's a pull request
args: -v --timeout=10m --out-format=colored-line-number

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

- name: Set up Go
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go>
with:
go-version: stable

- name: Install Go dependencies
run: go mod download

- name: Run tests
run: go test ./...
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
lint:
golangci-lint run --fix

test:
go test ./...

0 comments on commit e52fa6b

Please sign in to comment.