diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..32bebcf --- /dev/null +++ b/.github/workflows/test.yml @@ -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/go-acc@v0.2.6 + go-acc -o coverage.txt ./... -- -v --race + - uses: codecov/codecov-action@v3 + with: + file: ./coverage.txt