Skip to content

Commit b30cff5

Browse files
Update
1 parent 4bf5de3 commit b30cff5

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

.github/workflows/pull_request.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ jobs:
1414
run: cargo test
1515

1616
- name: CI Metrics
17+
# To be more stable you can use a tag e.g.
18+
# https://raw.githubusercontent.com/ci-metrics/script/v0.1.0/run.py
1719
run: |
18-
wget https://raw.githubusercontent.com/JonathanWoollett-Light/cimetrics-script/v0.1.0/run.py
20+
wget https://raw.githubusercontent.com/ci-metrics/script/master/run.py
1921
python3 ./run.py
2022
env:
2123
# Variables to interact with CI Metrics.
2224
PUBLIC_KEY: "6546b543a35b7d5af8c93a7b"
23-
PRIVATE_KEY: ${{ secrets.MetricsPrivateKey }}
25+
PRIVATE_KEY: "206925525691777734527727329171694843736"
2426
# Variables to upload
2527
HEAD: ${{ github.event.pull_request.head.sha }}
2628
DATA_FILE: "./metrics"

.github/workflows/push.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@ jobs:
1616
run: cargo test
1717

1818
- name: CI Metrics
19+
# To be more stable you can use a tag e.g.
20+
# https://raw.githubusercontent.com/ci-metrics/script/v0.1.0/run.py
1921
run: |
20-
wget https://raw.githubusercontent.com/JonathanWoollett-Light/cimetrics-script/v0.1.0/run.py
22+
wget https://raw.githubusercontent.com/ci-metrics/script/master/run.py
2123
python3 ./run.py
2224
env:
2325
# Variables to interact with CI Metrics.
2426
PUBLIC_KEY: "6546b543a35b7d5af8c93a7b"
25-
PRIVATE_KEY: ${{ secrets.MetricsPrivateKey }}
27+
PRIVATE_KEY: "206925525691777734527727329171694843736"
2628
# Variables to upload
2729
HEAD: ${{ github.event.after }}
2830
DATA_FILE: "./metrics"

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# cimetrics-hello-world
1+
# CI Metrics example
22

3-
This is a volatile experiment, you shouldn't use this, instead use https://github.com/bencherdev/bencher.
3+
A repo presenting an example project using CI Metrics.
44

5-
A repo presenting an example system for tracking generic metrics in CI like [codecov](https://about.codecov.io).
5+
CI Metrics is a system to track metrics like how [codecov](https://about.codecov.io) track code coverage.
66

77
![Example PR comment](./pr_comment_example.webp)
88

@@ -16,11 +16,9 @@ This is from http://3.10.39.149:3000/display/6546b543a35b7d5af8c93a7b/2069255256
1616

1717
1. Create account
1818
Run `curl -X POST http://3.10.39.149:3000/users`
19-
Noted down the `public_key` and `private_key`.
19+
Note down the `public_key` and `private_key`.
2020
There is no recovery mechanism, don't loose these.
2121
2. Copy [pull_request.yml](./.github/workflows/pull_request.yml) and [push.yml](./.github/workflows/push.yml) to your repo.
22-
Updating `PUBLIC_KEY` to be your public key.
23-
3. Add a repository secret named `METRICSPRIVATEKEY` with value of your private key.
2422

2523
## Visualize metrics
2624

0 commit comments

Comments
 (0)