Payments bugs v12 #1993
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: | |
| pull_request: | |
| paths-ignore: | |
| - "docs/**" | |
| - "*.md" | |
| - "LICENSE" | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - "docs/**" | |
| - "*.md" | |
| - "LICENSE" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| CARGO_INCREMENTAL: 0 | |
| CARGO_TERM_COLOR: always | |
| CARGO_PROFILE_DEV_DEBUG: 1 | |
| CARGO_PROFILE_TEST_DEBUG: 1 | |
| jobs: | |
| fast-checks: | |
| name: 🏁 Fast Checks (Format) | |
| runs-on: Large-Linux-x64-Runner | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/ubuntu | |
| - name: Install required components | |
| run: rustup component add rustfmt --toolchain nightly | |
| - name: Install taplo | |
| run: | | |
| curl -fsSL https://github.com/tamasfe/taplo/releases/download/0.9.3/taplo-linux-x86_64.gz | gunzip > taplo | |
| chmod +x taplo | |
| sudo mv taplo /usr/local/bin/ | |
| - name: Run format checks | |
| run: | | |
| taplo format --check --config taplo.toml | |
| cargo +nightly fmt --all -- --check | |
| build-and-test-matrix: | |
| name: 🛠️ Build & Test Matrix | |
| needs: fast-checks | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| os: | |
| - Large-Linux-x64-Runner | |
| - macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Ubuntu | |
| if: matrix.os == 'Large-Linux-x64-Runner' | |
| uses: ./.github/actions/ubuntu | |
| - name: Setup macOS | |
| if: matrix.os == 'macos-latest' | |
| uses: ./.github/actions/macos | |
| - name: Rust Cache | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| shared-key: "build-${{ matrix.os == 'Large-Linux-x64-Runner' && 'ubuntu' || matrix.os }}" | |
| - name: Install nextest | |
| uses: taiki-e/install-action@nextest | |
| - name: compile | |
| run: cargo build --locked --workspace --features runtime-benchmarks,try-runtime | |
| - name: test | |
| run: SKIP_WASM_BUILD=1 cargo nextest run --locked --workspace --features quantus-runtime/fast-governance | |
| - name: doctest | |
| run: SKIP_WASM_BUILD=1 cargo test --locked --workspace --doc --features quantus-runtime/fast-governance | |
| analysis: | |
| name: 🤖 Analysis (Clippy & Doc) | |
| needs: fast-checks | |
| runs-on: Large-Linux-x64-Runner | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Ubuntu | |
| uses: ./.github/actions/ubuntu | |
| - name: Rust Cache | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Install required components | |
| run: rustup component add rust-src clippy | |
| - name: Run clippy | |
| run: SKIP_WASM_BUILD=1 cargo clippy --locked --workspace | |
| - name: Run doc | |
| run: SKIP_WASM_BUILD=1 cargo doc --locked --workspace --no-deps |