fix: do not display error when sending benchmark uri #623
Workflow file for this run
This file contains hidden or 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
name: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: moonrepo/setup-rust@v1 | |
with: | |
components: rustfmt, clippy | |
- uses: pre-commit/[email protected] | |
with: | |
extra_args: --all-files | |
msrv-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: moonrepo/setup-rust@v1 | |
with: | |
bins: cargo-msrv | |
- name: Check cospeed MSRV | |
run: cargo msrv --path crates/codspeed verify -- cargo check --all-features --config codspeed=true | |
- name: Check bencher_compat MSRV | |
run: cargo msrv --path crates/bencher_compat verify -- cargo check --all-features --config codspeed=true | |
- name: Check criterion_compat MSRV | |
run: cargo msrv --path crates/criterion_compat verify -- cargo check --all-features --config codspeed=true | |
- name: Check divan_compat MSRV | |
run: cargo msrv --path crates/divan_compat verify -- cargo check --all-features --config codspeed=true | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: moonrepo/setup-rust@v1 | |
- run: cargo test --all | |
compat-integration-test-instrumentation: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
build-args: | |
- "-p codspeed" | |
- "-p codspeed-bencher-compat" | |
- "--features async_futures -p codspeed-criterion-compat" | |
- "-p codspeed-divan-compat" | |
- "-p codspeed-divan-compat-examples" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: moonrepo/setup-rust@v1 | |
with: | |
cache-target: release | |
- run: cargo install --path crates/cargo-codspeed --locked | |
- run: cargo codspeed build ${{ matrix.build-args }} | |
- name: Run the benchmarks | |
uses: CodSpeedHQ/action@main | |
env: | |
MY_ENV_VAR: "YES" | |
with: | |
run: cargo codspeed run | |
token: ${{ secrets.CODSPEED_TOKEN }} | |
compat-integration-test-walltime: | |
runs-on: codspeed-macro | |
strategy: | |
matrix: | |
package: | |
- codspeed-divan-compat | |
- codspeed-divan-compat-examples | |
- codspeed-criterion-compat | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: moonrepo/setup-rust@v1 | |
with: | |
cache-target: release | |
- run: cargo install --path crates/cargo-codspeed --locked | |
- run: cargo codspeed build -p ${{ matrix.package }} | |
- name: Run the benchmarks | |
uses: CodSpeedHQ/action@main | |
env: | |
MY_ENV_VAR: "YES" | |
with: | |
run: cargo codspeed run | |
token: ${{ secrets.CODSPEED_TOKEN }} | |
check: | |
runs-on: ubuntu-latest | |
if: always() | |
needs: | |
- lint | |
- msrv-check | |
- tests | |
- compat-integration-test-instrumentation | |
- compat-integration-test-walltime | |
steps: | |
- uses: re-actors/alls-green@release/v1 | |
with: | |
jobs: ${{ toJson( needs ) }} |