Skip to content

Commit

Permalink
Merge pull request #2 from caas-team/ci/go-tests
Browse files Browse the repository at this point in the history
ci: add go test workflow
  • Loading branch information
lvlcn-t authored Oct 24, 2023
2 parents 0247ec2 + 521243e commit 2306ef9
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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 test --race --coverprofile cover.out -v ./...

0 comments on commit 2306ef9

Please sign in to comment.