From f2a66f05792b0bb146607c537650ed0c9fcecea8 Mon Sep 17 00:00:00 2001 From: Lundis Date: Sun, 20 Oct 2024 13:03:37 +0300 Subject: [PATCH 1/4] checkout@v4 --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 425e374..27a91fc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 2 @@ -18,4 +18,4 @@ jobs: run: go test ./vector2/ ./vector3/ -race -coverprofile=coverage.txt -covermode=atomic - name: Upload Coverage to Codecov - run: bash <(curl -s https://codecov.io/bash) \ No newline at end of file + run: bash <(curl -s https://codecov.io/bash) From d7955a3731ff60ecbe74d83e875c178fdb54cf19 Mon Sep 17 00:00:00 2001 From: Lundis Date: Sun, 20 Oct 2024 13:05:21 +0300 Subject: [PATCH 2/4] setup-go@v5 --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 27a91fc..540ffc4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,9 +10,10 @@ jobs: 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 From 9f36d0f4e6e6933651d68ed22a3b79befac92dcc Mon Sep 17 00:00:00 2001 From: Lundis Date: Sun, 20 Oct 2024 13:14:24 +0300 Subject: [PATCH 3/4] codecov-action@v4 --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 540ffc4..b056799 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,4 +19,7 @@ jobs: 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: + fail_ci_if_error: true + verbose: true From a1769f1c1baa4aef238cfbcb1edc6045f91eb154 Mon Sep 17 00:00:00 2001 From: Lundis Date: Sun, 20 Oct 2024 13:17:33 +0300 Subject: [PATCH 4/4] added codecov token --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b056799..fc31f81 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,5 +21,6 @@ jobs: - name: Upload Coverage to Codecov uses: codecov/codecov-action@v4 with: + token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: true verbose: true