From ede5e39539907f52d1b8313d0cd50cc31888fa05 Mon Sep 17 00:00:00 2001 From: David Muir Sharnoff Date: Sat, 20 Jul 2024 13:29:32 -0700 Subject: [PATCH] update codecov uploader --- .github/workflows/codecov.yml | 12 ++++++------ .github/workflows/mysql.yml | 8 ++++---- .github/workflows/pg.yml | 5 +++-- .github/workflows/s2.yml | 6 +++--- 4 files changed, 16 insertions(+), 15 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 8b9b808..845295a 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -10,22 +10,22 @@ jobs: runs-on: ubuntu-latest steps: - name: Harden Runner - uses: step-security/harden-runner@128a63446a954579617e875aaab7d2978154e969 + uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c with: egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs - - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 with: fetch-depth: 2 - - uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 + - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 with: go-version: '1.18' - name: Run coverage run: make calculate_coverage - - name: Upload coverage to Codecov - uses: codecov/codecov-action@894ff025c7b54547a9a2a1e9f228beae737ad3c2 + uses: codecov/codecov-action@v4.0.1 with: - verbose: true flags: go_tests fail_ci_if_error: true + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/mysql.yml b/.github/workflows/mysql.yml index dab43fe..112ed7c 100644 --- a/.github/workflows/mysql.yml +++ b/.github/workflows/mysql.yml @@ -58,11 +58,11 @@ jobs: env: LIBSCHEMA_MYSQL_TEST_DSN: "root:mysql@tcp(127.0.0.1:3306)/libschematest?tls=false" run: go test -coverprofile=coverage.txt -covermode=atomic -coverpkg=github.com/muir/libschema/... ./lsmysql/... - - name: Upload coverage to Codecov - uses: codecov/codecov-action@894ff025c7b54547a9a2a1e9f228beae737ad3c2 + uses: codecov/codecov-action@v4.0.1 with: - verbose: true - flags: mysql_tests + flags: myseql_tests fail_ci_if_error: true + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/pg.yml b/.github/workflows/pg.yml index bc13d53..6e67056 100644 --- a/.github/workflows/pg.yml +++ b/.github/workflows/pg.yml @@ -58,8 +58,9 @@ jobs: run: go test -coverprofile=coverage.txt -covermode=atomic -coverpkg=github.com/muir/libschema/... ./lspostgres/... - name: Upload coverage to Codecov - uses: codecov/codecov-action@894ff025c7b54547a9a2a1e9f228beae737ad3c2 + uses: codecov/codecov-action@v4.0.1 with: - verbose: true flags: pg_tests fail_ci_if_error: true + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/s2.yml b/.github/workflows/s2.yml index 738e68a..23b8367 100644 --- a/.github/workflows/s2.yml +++ b/.github/workflows/s2.yml @@ -53,9 +53,9 @@ jobs: run: go test -coverprofile=coverage.txt -covermode=atomic -coverpkg=github.com/muir/libschema/... ./lsmysql/... ./lssinglestore/... - name: Upload coverage to Codecov - uses: codecov/codecov-action@894ff025c7b54547a9a2a1e9f228beae737ad3c2 + uses: codecov/codecov-action@v4.0.1 with: - verbose: true flags: singlestore_tests fail_ci_if_error: true - + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}