From 2a3eca2589ffa3620654483eced02c9bf9dfa0bd Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Mon, 2 Jan 2023 22:13:12 +0100 Subject: [PATCH] use latest codecov uploader (#5845) --- .github/workflows/main.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c519529f9..71ac16d34 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -105,11 +105,9 @@ jobs: # run tests with loopback only. We need to sudo for unshare, which means we need an absolute path for tox. sudo unshare --net -- sh -c "ip link set lo up; $(which tox) -e py" if: matrix.os == 'ubuntu-latest' - - uses: codecov/codecov-action@a1ed4b322b4b38cb846afb5a0ebfa17086917d27 - # mirrored below and at https://github.com/mitmproxy/mitmproxy/settings/actions + - uses: mhils/better-codecov-action@main with: - file: ./coverage.xml - name: ${{ matrix.os }} + arguments: '--file ./coverage.xml --name ${{ matrix.os }}' build: strategy: @@ -174,11 +172,9 @@ jobs: run: npm ci - working-directory: ./web run: npm test - - uses: codecov/codecov-action@a1ed4b322b4b38cb846afb5a0ebfa17086917d27 - # mirrored above and at https://github.com/mitmproxy/mitmproxy/settings/actions + - uses: mhils/better-codecov-action@main with: - file: ./web/coverage/coverage-final.json - name: web + arguments: '--file ./web/coverage/coverage-final.json' docs: runs-on: ubuntu-latest