Skip to content

Commit

Permalink
Merge pull request #44 from dusk-network/update-ci
Browse files Browse the repository at this point in the history
Update CI
  • Loading branch information
miloszm authored Nov 17, 2023
2 parents 0fbc8f2 + 38a3bac commit 6c9a9a4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 86 deletions.
97 changes: 12 additions & 85 deletions .github/workflows/dusk_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,95 +8,22 @@ name: CI

jobs:
analyze:
name: Dusk Analyzer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: install
args: --git https://github.com/dusk-network/cargo-dusk-analyzer
- uses: actions-rs/cargo@v1
with:
command: dusk-analyzer
name: Code Analysis
uses: dusk-network/.github/.github/workflows/code-analysis.yml@main
with:
clippy_default: false
clippy_args: -- -D warnings

check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: check
dusk_analyzer:
name: Dusk Analyzer
uses: dusk-network/.github/.github/workflows/dusk-analysis.yml@main

test_std:
name: Tests std
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: test
args: --release
uses: dusk-network/.github/.github/workflows/run-tests.yml@main

test_no_std:
name: Tests no_std
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: test
args: --release --no-default-features

fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install latest stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- run: rustup component add clippy
- run: rustup component add rustfmt
- name: Run `cargo clippy`
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
uses: dusk-network/.github/.github/workflows/run-tests.yml@main
with:
test_flags: --no-default-features
1 change: 0 additions & 1 deletion rust-toolchain

This file was deleted.

3 changes: 3 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[toolchain]
channel = "nightly-2023-05-22"
components = ["rustfmt", "rustup", "cargo", "clippy"]

0 comments on commit 6c9a9a4

Please sign in to comment.