[ci] Add workflow #6
Workflow file for this run
This file contains 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: | |
types: [opened, synchronize, reopened, ready_for_review] | |
# Disable previous runs | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check: | |
name: "CI" | |
runs-on: ubuntu-latest | |
container: | |
image: "paritytech/ci-unified:bullseye-1.75.0-2024-01-22-v20240222" | |
steps: | |
- uses: actions/checkout@v3 | |
# uncomment if needed | |
# - name: fmt | |
# run: | | |
# cargo fmt --all --check | |
- name: Rust Cache | |
uses: Swatinem/[email protected] | |
with: | |
cache-on-failure: true | |
cache-all-crates: true | |
- name: check | |
run: cargo check | |
test: | |
name: "CI" | |
runs-on: ubuntu-latest | |
container: | |
image: "paritytech/ci-unified:bullseye-1.75.0-2024-01-22-v20240222" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Rust Cache | |
uses: Swatinem/[email protected] | |
with: | |
cache-on-failure: true | |
cache-all-crates: true | |
- name: test | |
run: cargo test | |
doc: | |
name: "CI" | |
runs-on: ubuntu-latest | |
container: | |
image: "paritytech/ci-unified:bullseye-1.75.0-2024-01-22-v20240222" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Rust Cache | |
uses: Swatinem/[email protected] | |
with: | |
cache-on-failure: true | |
cache-all-crates: true | |
- name: doc | |
run: cargo doc | |
clippy: | |
name: "CI" | |
runs-on: ubuntu-latest | |
container: | |
image: "paritytech/ci-unified:bullseye-1.75.0-2024-01-22-v20240222" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Rust Cache | |
uses: Swatinem/[email protected] | |
with: | |
cache-on-failure: true | |
cache-all-crates: true | |
- name: clippy | |
continue-on-error: true | |
run: cargo clippy |