Skip to content

Rabbit 🐇 season #9639

Rabbit 🐇 season

Rabbit 🐇 season #9639

Workflow file for this run

name: Rust Tests
on:
schedule:
- cron: 0 */6 * * *
pull_request:
branches: [main]
workflow_dispatch:
inputs:
# trunk-ignore(checkov/CKV_GHA_7)
cli-version:
type: string
required: false
description:
The version of `analytics-cli` to use. Defaults to the latest specified in
`analytis-uploader`.
jobs:
test:
runs-on: public-amd64-small
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@nightly
- name: Build
run: cargo build -q --all --manifest-path=./rust/Cargo.toml
- name: Install nextest
run: curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
- name: Run tests
uses: ./.github/actions/analytics-uploader-wrapper
with:
token-staging: ${{ secrets.TRUNK_STAGING_ORG_API_TOKEN }}
token-prod: ${{ secrets.TRUNK_PROD_ORG_API_TOKEN }}
cli-version: ${{ inputs.cli-version }}
junit-paths: rust/**/nextest/ci/*junit.xml
run: cargo nextest run --profile=ci --manifest-path=./rust/Cargo.toml