Skip to content

Commit

Permalink
Add CI for CLI tool crate.
Browse files Browse the repository at this point in the history
  • Loading branch information
yotarok committed Sep 20, 2023
1 parent d134704 commit 829fcd1
Showing 1 changed file with 31 additions and 7 deletions.
38 changes: 31 additions & 7 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,29 @@ jobs:
override: true
components: rustfmt, clippy
- name: Install external dependencies
run: sudo apt-get install -y libsndfile1-dev
run: sudo apt-get update && sudo apt-get install -y libsndfile1-dev
- name: Run cargo check
uses: actions-rs/cargo@v1
uses: ClementTsang/cargo[email protected]
with:
command: check
args: --verbose --all-targets --all-features
- name: Run tests
uses: actions-rs/cargo@v1
uses: ClementTsang/cargo[email protected]
with:
command: test
args: --verbose

args: --verbose --all-targets --all-features
- name: Run cargo check (CLI)
uses: ClementTsang/[email protected]
with:
command: check
args: --verbose --all-targets --all-features
directory: flacenc-bin
- name: Run tests (CLI)
uses: ClementTsang/[email protected]
with:
command: test
args: --verbose --all-targets --all-features
directory: flacenc-bin
lints:
runs-on: ubuntu-latest
steps:
Expand All @@ -47,14 +59,26 @@ jobs:
override: true
components: rustfmt, clippy
- name: Code format check
uses: actions-rs/cargo@v1
uses: ClementTsang/cargo[email protected]
with:
command: fmt
args: --check
- name: Clippy
uses: actions-rs/cargo@v1
uses: ClementTsang/cargo[email protected]
with:
command: clippy
args: --tests -- -D warnings
- name: Generate docs (for doc syntax checking)
run: cargo doc
- name: Code format check (CLI tools)
uses: ClementTsang/[email protected]
with:
command: fmt
args: --check
directory: flacenc-bin
- name: Clippy (CLI tools)
uses: ClementTsang/[email protected]
with:
command: clippy
args: --tests -- -D warnings
directory: flacenc-bin

0 comments on commit 829fcd1

Please sign in to comment.