Skip to content

Commit

Permalink
ci: run jobs in container
Browse files Browse the repository at this point in the history
  • Loading branch information
ggera committed Jun 20, 2024
1 parent 2d1d7ed commit c492ccc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/clippy-check.yml
Original file line number Diff line number Diff line change
@@ -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
11 changes: 3 additions & 8 deletions .github/workflows/try-runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c492ccc

Please sign in to comment.