Skip to content

Commit 5066ab5

Browse files
authored
Use codecov token in the build pipeline + Update readme (#10)
* use codecov token in the build pipeline * add code coverage details to readme * add a badge for codecov to the readme * use upstream repo config instead of fork
1 parent d05ccce commit 5066ab5

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,5 @@ jobs:
135135
- name: Upload Code Coverage Report
136136
uses: codecov/codecov-action@v4
137137
with:
138-
files: ${{ github.workspace }}/build/reports/kover/report.xml
138+
files: ${{ github.workspace }}/build/reports/kover/report.xml
139+
token: ${{ secrets.CODECOV_TOKEN }}

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Secure Gateway Tunneler
22

3+
[![codecov](https://codecov.io/github/salesforce/secure-pomerium-tunneler/graph/badge.svg?token=R0HHUDVA30)](https://codecov.io/github/salesforce/secure-pomerium-tunneler)
4+
35
<!-- Plugin description -->
46
A Jetbrains Gateway plugin which handles authentication and tunneling through to a
57
[Pomerium](https://pomerium.io) route for connecting to a IntelliJ backend.
@@ -14,10 +16,20 @@ links. This provider requires the following parameters in the links query parame
1416
2) `connectionKey`: A URL encoded join link provided by the backend.
1517
for example, by using `remote-dev-server.sh status`. It will be the one that looks like
1618
`tcp://127.0.0.1:5990#jt=...`
17-
3) `pomeriumInstance`: (Optional) a hostname of the pomerium instance to use. By default
19+
3) `pomeriumInstance`: (Optional) a hostname of the pomerium instance to use. By default,
1820
the `pomeriumRoute` will be used to connect, but if DNS does not point to pomerium, this can be used
1921

2022
In addition, this plugin implements `GatewayConnector` to allow connecting using the
2123
instance via the `jetbrains-gateway://` link without going through the browser (useful for testing)
2224

25+
## Code Coverage
26+
27+
This project uses [Codecov](https://about.codecov.io/) for test coverage metrics, integrated via GitHub Actions.
28+
Coverage reports are generated on every build and uploaded to Codecov for visualization and tracking.
29+
30+
For protected branches (e.g., main), a Codecov upload token is required and already configured as a
31+
repository secret (`CODECOV_TOKEN`). If you fork this repository or set up a similar workflow, add your
32+
own token as a secret and ensure coverage reports are generated at `build/reports/kover/report.xml`.
33+
For more details, see the [Codecov docs](https://docs.codecov.com/docs/codecov-tokens).
34+
2335

0 commit comments

Comments
 (0)