Repository navigation
refactor: rename telemetry config to anonymous_telemetry #287
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: | |
| branches: [main] | |
| workflow_dispatch: | |
| inputs: | |
| dry_run: | |
| description: 'Dry run' | |
| type: boolean | |
| default: false | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@nightly | |
| with: | |
| components: clippy, rustfmt | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Format check | |
| run: cargo fmt --check | |
| - name: Clippy | |
| run: cargo clippy -- -D warnings | |
| - name: Tests | |
| run: cargo test | |
| coverage: | |
| name: Coverage | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@nightly | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Install cargo-tarpaulin | |
| run: cargo install cargo-tarpaulin | |
| - name: Generate coverage | |
| run: cargo tarpaulin --out xml --skip-clean | |
| - uses: codecov/codecov-action@v6 | |
| with: | |
| files: cobertura.xml | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| fail_ci_if_error: false | |
| micro-bench: | |
| name: Micro Benchmarks | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@nightly | |
| - uses: Swatinem/rust-cache@v2 | |
| - uses: FerrFlow-Org/Benchmarks@v2 | |
| with: | |
| type: micro | |
| ferrflow-token: ${{ secrets.GITHUB_TOKEN }} | |
| benchmark: | |
| name: Benchmark | |
| needs: test | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@nightly | |
| - uses: Swatinem/rust-cache@v2 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: '24' | |
| - uses: FerrFlow-Org/Benchmarks@v2 | |
| with: | |
| type: full | |
| ferrflow-token: ${{ secrets.GITHUB_TOKEN }} | |
| release: | |
| name: Release | |
| needs: [test, benchmark] | |
| runs-on: ubuntu-latest | |
| concurrency: | |
| group: release-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: false | |
| if: | | |
| always() && | |
| needs.test.result == 'success' && | |
| (needs.benchmark.result == 'success' || needs.benchmark.result == 'skipped') && | |
| ( | |
| (github.event_name == 'push' && github.ref == 'refs/heads/main') || | |
| github.event_name == 'workflow_dispatch' | |
| ) | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ secrets.FERRFLOW_TOKEN }} | |
| - name: Configure git | |
| run: git remote set-url origin https://x-access-token:${{ secrets.FERRFLOW_TOKEN }}@github.com/${{ github.repository }} | |
| - uses: FerrFlow-Org/ferrflow@v2 | |
| with: | |
| dry_run: ${{ inputs.dry_run }} | |
| env: | |
| FERRFLOW_TOKEN: ${{ secrets.FERRFLOW_TOKEN }} | |
| GITHUB_TOKEN: ${{ secrets.FERRFLOW_TOKEN }} |