Skip to content

Workflow file for this run

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 }}