Skip to content

Commit

Permalink
change dirs in ci (per command)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaBrest committed Jul 6, 2023
1 parent 1bef69f commit f9a4e36
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 20 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/rust-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ jobs:
publish:
name: Publish
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./icns-rs
steps:
- uses: actions/checkout@v3
- name: Setup Rust
Expand All @@ -20,5 +17,6 @@ jobs:
override: true
- name: Publish
run: cargo publish --token ${CRATES_TOKEN}
working-directory: ./icns-rs
env:
CRATES_IO_TOKEN: ${{ secrets.CRATES_TOKEN }}
23 changes: 6 additions & 17 deletions .github/workflows/rust-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ jobs:
tests:
name: Tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./icns-rs
steps:
- uses: actions/checkout@v3
- name: Setup Rust
Expand All @@ -23,9 +20,8 @@ jobs:
toolchain: stable
override: true
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
working-directory: ./icns-rs
run: cargo test
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
Expand All @@ -41,16 +37,11 @@ jobs:
override: true
components: rustfmt
- name: Run rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: '-- --check'
working-directory: ./icns-rs
run: cargo fmt -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./icns-rs
steps:
- uses: actions/checkout@v3
- name: Setup Rust
Expand All @@ -60,7 +51,5 @@ jobs:
override: true
components: clippy
- name: Run clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: '-- -D warnings'
working-directory: ./icns-rs
run: cargo clippy -- -D warnings

0 comments on commit f9a4e36

Please sign in to comment.