Skip to content

Commit

Permalink
feat: optimize ci
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Aug 21, 2024
1 parent 868bfc7 commit a294381
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,6 @@ on:
- master
pull_request:
jobs:
codecov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: Install dependencies
run: go mod tidy
- name: Run tests with coverage
run: go test -timeout 1h -coverprofile="coverage.out" ./...
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v4
with:
file: ./coverage.out
token: ${{ secrets.CODECOV }}
test:
uses: goravel/.github/.github/workflows/codecov.yml@master
secrets: inherit

0 comments on commit a294381

Please sign in to comment.