Skip to content

Commit

Permalink
GitHub Actions update
Browse files Browse the repository at this point in the history
  • Loading branch information
dnsl48 committed Dec 26, 2022
1 parent 8f313f6 commit 90f2fa1
Showing 1 changed file with 21 additions and 50 deletions.
71 changes: 21 additions & 50 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
with:
command: check


test:
name: Test
runs-on: ubuntu-latest
Expand All @@ -36,65 +37,35 @@ jobs:
toolchain: stable
override: true

- name: Run cargo test "test_reader"
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose --features test_reader
args: --verbose --all-features

- name: Run cargo test "test_savant"
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose --features test_savant

- name: Run cargo test "test_sage"
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose --features test_sage
lints:
name: Lints
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Run cargo test "test_book"
uses: actions-rs/cargo@v1
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
command: test
args: --verbose --features test_book
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy

- name: Run cargo test "test_orchestra"
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose --features test_orchestra
command: fmt
args: --all -- --check

- name: Run cargo test "test_face"
- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose --features test_face

# lints:
# name: Lints
# runs-on: ubuntu-latest
# steps:
# - name: Checkout sources
# uses: actions/checkout@v2

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

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

# - name: Run cargo clippy
# uses: actions-rs/cargo@v1
# with:
# command: clippy
# args: --all-features -- -D warnings
command: clippy
args: --all-features -- -D warnings

0 comments on commit 90f2fa1

Please sign in to comment.