Skip to content

Commit

Permalink
ci: Update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-zero committed Oct 31, 2023
1 parent 86a5814 commit e9d2ccd
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions .github/workflows/wot-serve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,22 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Install stable
uses: actions-rs/toolchain@v1
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
components: clippy, rustfmt

- name: Run rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check --verbose
run:
cargo fmt --all -- --check --verbose

- name: Run cargo clippy
uses: actions-rs/clippy-check@v1
uses: giraffate/clippy-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets --tests --benches -- -D warnings
github_token: ${{ secrets.GITHUB_TOKEN }}
clippy_flags: --all-targets -- -D warnings
reporter: github-pr-review

build-test:

Expand All @@ -44,11 +41,9 @@ jobs:
- uses: actions/checkout@v3

- name: Install Rust stable
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true

- name: Build
run: cargo build --verbose --tests --benches
Expand All @@ -67,11 +62,9 @@ jobs:
- uses: actions/checkout@v3

- name: Install Rust stable
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true

- name: Install grcov
env:
Expand Down Expand Up @@ -178,12 +171,10 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Install stable
uses: actions-rs/toolchain@v1
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true

- name: Install grcov
env:
Expand Down

0 comments on commit e9d2ccd

Please sign in to comment.