Skip to content

Commit

Permalink
Remove outdated actions-rs github actions
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
  • Loading branch information
Jarema authored Apr 12, 2023
1 parent 8196c97 commit 8d0803c
Showing 1 changed file with 21 additions and 41 deletions.
62 changes: 21 additions & 41 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ jobs:
restore-keys: |
${{ runner.os }}-go-
- name: Set up go
- name: Setup Rust
run: rustup install stable

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.19'
Expand Down Expand Up @@ -88,17 +91,11 @@ jobs:
- name: Check out repository
uses: actions/checkout@v2

- name: Set up rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Set up Rust
run: rustup install stable

- name: Check format
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
- name: Run the check
run: cargo fmt -- --check

check_lint:
name: check (lint)
Expand All @@ -118,17 +115,12 @@ jobs:
uses: actions/checkout@v2

- name: Set up rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
override: true
run: |
rustup install stable
rustup component add clippy
- name: Check lint
uses: actions-rs/cargo@v1
with:
args: --benches --tests --examples --all-features -- --deny clippy::all
command: clippy
run: cargo clippy --benches --tests --examples --all-features -- --deny clippy::all

check_docs:
name: check (docs)
Expand All @@ -148,16 +140,12 @@ jobs:
uses: actions/checkout@v2

- name: Set up rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
override: true
run: |
rustup install stable
rustup component add clippy
- name: Check docs
uses: actions-rs/cargo@v1
with:
command: doc
- name: Check lint
run: cargo doc

check_licenses:
name: check (licenses)
Expand Down Expand Up @@ -226,6 +214,7 @@ jobs:
run: |
rustup update
cargo check --examples
check_spelling:
name: check (spelling)
runs-on: ubuntu-latest
Expand All @@ -243,22 +232,13 @@ jobs:
uses: actions/checkout@v2

- name: Set up rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
run: rustup install nightly

- name: Install llvm-config
run: sudo apt-get install -y libclang-dev

- name: Install cargo spellcheck
uses: actions-rs/cargo@v1
with:
args: cargo-spellcheck
command: install
run: cargo install cargo-spellcheck

- name: Check spelling
uses: actions-rs/cargo@v1
with:
command: spellcheck
args: --code 1
run: cargo spellcheck --code 1

0 comments on commit 8d0803c

Please sign in to comment.