Skip to content

Commit

Permalink
Replace unmaintained action-rs actions (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrobbel authored Dec 9, 2022
1 parent 80c0676 commit cf9c0dd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 56 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/cron.yml

This file was deleted.

10 changes: 2 additions & 8 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,11 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions-rs/toolchain@v1.0.7
with:
profile: minimal
toolchain: stable
- uses: dtolnay/rust-toolchain@stable
- uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rs/cargo@v1.0.3
with:
command: doc
args: --all-features --no-deps
- run: cargo doc --all-features --no-deps
- if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v1
with:
Expand Down
42 changes: 8 additions & 34 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,11 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions-rs/toolchain@v1.0.7
with:
profile: minimal
toolchain: stable
- uses: dtolnay/rust-toolchain@stable
- uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rs/cargo@v1.0.3
with:
command: check
args: --all-features
- run: cargo check --all-features

test:
name: Test
Expand All @@ -29,32 +23,19 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions-rs/toolchain@v1.0.7
with:
profile: minimal
toolchain: stable
- uses: dtolnay/rust-toolchain@stable
- uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rs/cargo@v1.0.3
with:
command: test
args: --all-features
- run: cargo test --all-features

rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1.0.7
with:
profile: minimal
toolchain: stable
components: rustfmt
- uses: actions-rs/cargo@v1.0.3
with:
command: fmt
args: --all -- --check
- uses: dtolnay/rust-toolchain@stable
- run: cargo fmt -- --check

clippy:
name: Clippy
Expand All @@ -63,15 +44,8 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions-rs/toolchain@v1.0.7
with:
profile: minimal
toolchain: stable
components: clippy
- uses: dtolnay/rust-toolchain@clippy
- uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rs/cargo@v1.0.3
with:
command: clippy
args: --all-features -- -Dwarnings
- run: cargo clippy --all-features -- -Dwarnings

0 comments on commit cf9c0dd

Please sign in to comment.