Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
rust: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Test | |
run: cargo test | |
- name: CI Metrics | |
# To be more stable you can use a tag e.g. | |
# https://raw.githubusercontent.com/ci-metrics/script/v0.1.0/run.py | |
run: | | |
wget https://raw.githubusercontent.com/ci-metrics/script/master/run.py | |
python3 ./run.py | |
env: | |
# Variables to interact with CI Metrics. | |
PUBLIC_KEY: ${{ vars.METRICS_PUBLIC_KEY }} | |
PRIVATE_KEY: ${{ secrets.METRICS_PRIVATE_KEY }} | |
# Variables to upload | |
HEAD: ${{ github.event.pull_request.head.sha }} | |
DATA_FILE: "./metrics" | |
# Variables to diff | |
TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BASE: ${{ github.event.pull_request.base.sha }} | |
ISSUE: ${{ github.event.pull_request.number }} |