Skip to content

Commit

Permalink
Merge pull request #8 from Lundis/updated_ci
Browse files Browse the repository at this point in the history
Updated ci script
  • Loading branch information
deeean authored Oct 21, 2024
2 parents 2207e83 + a1769f1 commit 44b5366
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,21 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 2

- uses: actions/setup-go@v2
- uses: actions/setup-go@v5
with:
go-version: '1.16'
go-version-file: 'go.mod'
cache: true

- name: Run Test and Coverage
run: go test ./vector2/ ./vector3/ -race -coverprofile=coverage.txt -covermode=atomic

- name: Upload Coverage to Codecov
run: bash <(curl -s https://codecov.io/bash)
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true

0 comments on commit 44b5366

Please sign in to comment.