summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2022-11-28 17:26:50 +0100
committerGitHub <noreply@github.com>2022-11-28 17:26:50 +0100
commitf4c1193ea1f93c7984d23a1366efe41d66fa732d (patch)
tree35e3149fed0c92a22aec4f51b6f9c62e6f04b7cd
parentdc8103b67a01c0a1948176534a2c87c44ba39a0f (diff)
parent5ce8cb60edf7c1acba7f94f066000cbb4612ae4f (diff)
Merge pull request #396 from matthiasbeyer/replace-actions-rs
Replace actions rs
-rw-r--r--.github/workflows/cron.yml20
-rw-r--r--.github/workflows/msrv.yml42
2 files changed, 16 insertions, 46 deletions
diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml
index 400c605..264c111 100644
--- a/.github/workflows/cron.yml
+++ b/.github/workflows/cron.yml
@@ -20,17 +20,12 @@ jobs:
uses: actions/checkout@v3.1.0
- name: Install toolchain
- uses: actions-rs/toolchain@v1
+ uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- minimal: true
- override: true
- name: Run cargo check
- uses: actions-rs/cargo@v1
- with:
- command: check
- args: --all --all-features --examples
+ run: cargo check --all --all-features --examples
clippy:
needs: [check]
@@ -46,16 +41,11 @@ jobs:
uses: actions/checkout@v3.1.0
- name: Install toolchain
- uses: actions-rs/toolchain@v1
+ uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- minimal: true
- override: true
components: clippy
- - name: Run cargo clippy
- uses: actions-rs/cargo@v1
- with:
- command: clippy
- args: --all-targets --all-features -- -D warnings
+ - name: Run cargo check
+ run: cargo clippy --all --all-features -- -D warnings
diff --git a/.github/workflows/msrv.yml b/.github/workflows/msrv.yml
index a3c44d6..e2fb1ea 100644
--- a/.github/workflows/msrv.yml
+++ b/.github/workflows/msrv.yml
@@ -19,10 +19,9 @@ jobs:
uses: actions/checkout@v3.1.0
- name: Install toolchain
- uses: actions-rs/toolchain@v1
+ uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- override: true
- name: Run cargo check
if: matrix.rust != 'nightly'
@@ -53,25 +52,18 @@ jobs:
uses: actions/checkout@v3.1.0
- name: Install toolchain
- uses: actions-rs/toolchain@v1
+ uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- override: true
- name: Run cargo test
if: matrix.rust != 'nightly' && matrix.rust != '1.56.1'
- uses: actions-rs/cargo@v1
- with:
- command: test
- args: --all-features
+ run: cargo test --all-features
- name: Run cargo test (nightly)
if: matrix.rust == '1.59.0'
continue-on-error: true
- uses: actions-rs/cargo@v1
- with:
- command: test
- args: --tests --all-features
+ run: cargo test --tests --all-features
- name: Run cargo test (nightly)
if: matrix.rust == 'nightly'
@@ -95,17 +87,13 @@ jobs:
uses: actions/checkout@v3.1.0
- name: Install toolchain
- uses: actions-rs/toolchain@v1
+ uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- override: true
components: rustfmt
- name: Run cargo fmt
- uses: actions-rs/cargo@v1
- with:
- command: fmt
- args: --all -- --check
+ run: cargo fmt --all -- --check
clippy:
needs: [check]
@@ -116,17 +104,12 @@ jobs:
uses: actions/checkout@v3.1.0
- name: Install toolchain
- uses: actions-rs/toolchain@v1
+ uses: dtolnay/rust-toolchain@1.59.0
with:
- toolchain: 1.59.0
- override: true
components: clippy
- name: Run cargo clippy
- uses: actions-rs/cargo@v1
- with:
- command: clippy
- args: --all-targets --all-features -- -D warnings
+ run: cargo clippy --all-targets --all-features -- -D warnings
check-examples:
name: Check examples
@@ -143,14 +126,11 @@ jobs:
uses: actions/checkout@v3.1.0
- name: Install toolchain
- uses: actions-rs/toolchain@v1
+ uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- override: true
+ components: clippy
- name: Run cargo check
- uses: actions-rs/cargo@v1
- with:
- command: check
- args: --examples
+ run: cargo check --examples