From c492cccf1b049b7d57c46e1656723d40ebf53ad0 Mon Sep 17 00:00:00 2001 From: gera Date: Thu, 20 Jun 2024 13:49:10 +0200 Subject: [PATCH] ci: run jobs in container --- .github/workflows/clippy-check.yml | 9 ++++++--- .github/workflows/try-runtime.yml | 11 +++-------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/clippy-check.yml b/.github/workflows/clippy-check.yml index b79ecd546..d76915a3d 100644 --- a/.github/workflows/clippy-check.yml +++ b/.github/workflows/clippy-check.yml @@ -1,14 +1,17 @@ on: push name: Clippy check +# Make sure CI fails on all warnings, including Clippy lints env: - RUSTFLAGS: ''-D warnings' cargo doc --all-features --no-deps --locked + RUSTFLAGS: "-Dwarnings" jobs: clippy_check: runs-on: [self-hosted] + container: + image: paritytech/ci-unified:bullseye-1.77.0 steps: - uses: actions/checkout@v4 - name: Run Clippy - uses: paritytech/ci-unified:bullseye-1.77.0 - run: cargo clippy --all-features --all-targets --locked -- -D warnings + uses: actions/checkout@v4 + run: cargo clippy --all-features --all-targets --locked -- -D warnings && cargo doc --all-features --no-deps --locked diff --git a/.github/workflows/try-runtime.yml b/.github/workflows/try-runtime.yml index 4a1b25f79..7df6a5aa1 100644 --- a/.github/workflows/try-runtime.yml +++ b/.github/workflows/try-runtime.yml @@ -8,20 +8,15 @@ jobs: matrix: runtime: [ peregrine, spiritnet ] uri: [ 'wss://peregrine.kilt.io:443', 'wss://peregrine.kilt.io:443' ] - runs-on: [self-hosted] + runs-on: [ self-hosted ] + container: + image: paritytech/ci-unified:bullseye-1.77.0 steps: - name: Checkout code uses: actions/checkout@v2 - - name: Set Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: false - - name: Build - uses: paritytech/ci-unified:bullseye-1.77.0 run: cargo build --release -p ${{ matrix.runtime }}-runtime --features try-runtime --locked - name: Run tests