Skip to content

Commit

Permalink
ci: updates CI pipeline to be up to date with the latest standards
Browse files Browse the repository at this point in the history
  • Loading branch information
claymcleod committed Oct 9, 2024
1 parent ded7394 commit 8bc7932
Showing 1 changed file with 38 additions and 4 deletions.
42 changes: 38 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
name: CI

on: [push, pull_request]
on:
push:
branches:
- main
pull_request:

jobs:
format:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Update Rust
run: rustup update nightly && rustup default nightly
run: rustup update nightly && rustup default nightly
- name: Install rustfmt
run: rustup component add rustfmt
- run: cargo fmt -- --check
Expand All @@ -18,7 +22,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Update Rust
run: rustup update nightly && rustup default nightly
run: rustup update stable && rustup default stable
- name: Install clippy
run: rustup component add clippy
- run: cargo clippy --all-features -- --deny warnings
Expand All @@ -28,5 +32,35 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Update Rust
run: rustup update nightly && rustup default nightly
run: rustup update stable && rustup default stable
- run: cargo test --all-features

test-examples:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Update Rust
run: rustup update stable && rustup default stable
- run: cargo test --all-features --examples

docs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Update Rust
run: rustup update stable && rustup default stable
- run: cargo doc

msrv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Update Rust
run: rustup update stable && rustup default stable
- name: Install cargo-binstall
run: curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
- name: Install cargo-msrv
run: cargo binstall -y --version 0.16.0-beta.23 cargo-msrv
- name: Verify the MSRV
working-directory: ./chainfile
run: cargo msrv verify --output-format minimal --all-features

0 comments on commit 8bc7932

Please sign in to comment.