Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ramin committed Oct 23, 2023
1 parent f07c8af commit 6a0a149
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/go-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,23 @@ jobs:
- name: check for diff
run: git diff --exit-code

test:
name: Unit tests
runs-on: ubuntu-latest
test:
needs: [lint, go_mod_tidy_check]
name: Unit tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
steps:
- uses: actions/checkout@v3

- uses: actions/setup-go@v4
with:
go-version: ${{ inputs.go-version }}
- uses: actions/setup-go@v4
with:
go-version: ${{ inputs.go-version }}

- name: Run tests
run: go test -coverprofile=coverage.txt -covermode=atomic ./...
- name: Run tests
run: go test -coverprofile=coverage.txt -covermode=atomic ./...

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 6a0a149

Please sign in to comment.