Skip to content

Commit

Permalink
default run working-dir isn't enough
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhoo committed Mar 5, 2023
1 parent 629f844 commit cf3ac36
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 16 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: fmt
args: --check
args: --check --manifest-path server/Cargo.toml
clippy:
runs-on: ubuntu-latest
name: ${{ matrix.toolchain }} / clippy
Expand All @@ -54,3 +54,4 @@ jobs:
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --manifest-path server/Cargo.toml
14 changes: 4 additions & 10 deletions .github/workflows/lint-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,12 @@ jobs:
run:
working-directory: ./client
steps:
- name: Code Checkout
uses: actions/checkout@v3

- name: Setup Node
- uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
cache-dependency-path: client/package-lock.json

- name: Install Dependencies
run: npm ci

- name: Code Lint
run: npm run lint
- run: npm ci
- run: npm run lint
8 changes: 4 additions & 4 deletions .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,22 @@ jobs:
with:
submodules: true
- name: Install beta
if: hashFiles('Cargo.lock') != ''
if: hashFiles('server/Cargo.lock') != ''
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: beta
default: true
- name: cargo update
if: hashFiles('Cargo.lock') != ''
if: hashFiles('server/Cargo.lock') != ''
uses: actions-rs/cargo@v1
with:
command: update
- name: cargo test
if: hashFiles('Cargo.lock') != ''
if: hashFiles('server/Cargo.lock') != ''
uses: actions-rs/cargo@v1
with:
command: test
args: --locked --all-features --all-targets
args: --locked --all-features --all-targets --manifest-path server/Cargo.toml
env:
RUSTFLAGS: -D deprecated
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: generate-lockfile
args: --manifest-path server/Cargo.toml
# https://twitter.com/jonhoo/status/1571290371124260865
- name: cargo test --locked
uses: actions-rs/cargo@v1
with:
command: test
args: --locked --all-features --all-targets
args: --locked --all-features --all-targets --manifest-path server/Cargo.toml

0 comments on commit cf3ac36

Please sign in to comment.