Skip to content

Commit

Permalink
GH-3: Use newer actions
Browse files Browse the repository at this point in the history
  • Loading branch information
CMDJojo committed Jan 22, 2023
1 parent 0f75556 commit 886baff
Showing 1 changed file with 16 additions and 38 deletions.
54 changes: 16 additions & 38 deletions .github/workflows/RustCI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,67 +15,45 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install toolchain (minimal, stable)
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: check
args: --verbose
uses: dtolnay/rust-toolchain@stable
- name: Run cargo check
run: cargo check --verbose

test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install toolchain (minimal, stable)
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --verbose
uses: dtolnay/rust-toolchain@stable
- name: Run cargo test
run: cargo test --verbose

lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install toolchain (minimal+clippy, stable)
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
components: clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --verbose -- -D warnings
- name: Run cargo clippy
run: cargo clippy --verbose -- -D warnings

format:
name: Format
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install toolchain (minimal+rustfmt, stable)
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --verbose -- --check
- name: Run cargo fmt
run: cargo fmt --verbose -- --check

0 comments on commit 886baff

Please sign in to comment.