Skip to content

Commit

Permalink
Add job to CI to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hungdinh82 committed Jan 13, 2025
1 parent c2c33df commit 490e468
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/runUnitTest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Run Unit Tests
on:
push:
tags:
- v*
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
env:
GOPROXY: https://proxy.golang.org
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.23"
- name: Test & Coverage
run: |
go install github.com/ory/[email protected]
go-acc -o coverage.txt ./... -- -v --race
- uses: codecov/codecov-action@v3
with:
file: ./coverage.txt

0 comments on commit 490e468

Please sign in to comment.