Skip to content

Commit 32035c2

Browse files
authored
chore(ci): use new Codecov uploader for reporting code coverage (#811)
1 parent 6a523b1 commit 32035c2

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

.github/workflows/master.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,17 @@ jobs:
2525
run: ./compile-and-test.sh
2626

2727
- name: codecov
28-
run: bash <(curl -s https://codecov.io/bash)
28+
run: |
29+
sudo apt-get update
30+
sudo apt-get install gpg libdigest-sha-perl -y
31+
curl -Os https://uploader.codecov.io/latest/linux/codecov
32+
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
33+
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig
34+
curl -s https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import
35+
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM
36+
shasum -a 256 -c codecov.SHA256SUM
37+
chmod +x ./codecov
38+
./codecov
2939
if: matrix.influxdb != '2.0' && matrix.influxdb != '2.1'
3040

3141

.github/workflows/pr.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,15 @@ jobs:
2929
run: ./compile-and-test.sh
3030

3131
- name: codecov
32-
run: bash <(curl -s https://codecov.io/bash)
32+
run: |
33+
sudo apt-get update
34+
sudo apt-get install gpg libdigest-sha-perl -y
35+
curl -Os https://uploader.codecov.io/latest/linux/codecov
36+
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
37+
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig
38+
curl -s https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import
39+
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM
40+
shasum -a 256 -c codecov.SHA256SUM
41+
chmod +x ./codecov
42+
./codecov
3343
if: matrix.influxdb != '2.0' && matrix.influxdb != '2.1'

0 commit comments

Comments
 (0)