Skip to content

Commit

Permalink
ci: add test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lvlcn-t committed Nov 16, 2023
1 parent 9455a0c commit 6a78302
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: test

on:
pull_request:
branches:
- main

jobs:
test_go:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: "go.mod"

- name: Test
run: |
go mod download
go install github.com/matryer/moq@latest
go generate ./...
go test --race --coverprofile cover.out -v ./...

0 comments on commit 6a78302

Please sign in to comment.