Skip to content

Commit

Permalink
ci: Add job to CI to run tests (#450)
Browse files Browse the repository at this point in the history
Co-authored-by: ducnt131 <[email protected]>
  • Loading branch information
hungdinh82 and anhductn2001 authored Jan 13, 2025
1 parent c2c33df commit f440f9b
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test.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 f440f9b

Please sign in to comment.