Skip to content

Commit

Permalink
[ci] Add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alvicsam committed Mar 13, 2024
1 parent cc043b6 commit 3f82bfa
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on:
push:
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:
ci:
name: "CI"
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/rust-cache@v2.5.0
with:
cache-on-failure: true
cache-all-crates: true

- name: check
run: cargo check

- name: test
run: cargo test

- name: doc
run: cargo doc

- name: clippy
continue-on-error: true
run: cargo clippy

0 comments on commit 3f82bfa

Please sign in to comment.