Skip to content

Commit

Permalink
Change directory before build.
Browse files Browse the repository at this point in the history
  • Loading branch information
emmiegit committed Nov 22, 2023
1 parent 8b8aaac commit fc78da5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/api-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ jobs:
path: |
~/.cargo/registry
~/.cargo/git
./target
./api/target
key: ${{ runner.os }}-rust-${{ hashFiles('Cargo.toml') }}

- name: Build
run: cargo build
run: cd api && cargo build

clippy_lint:
name: Lint
Expand All @@ -56,11 +56,11 @@ jobs:
path: |
~/.cargo/registry
~/.cargo/git
./target
./api/target
key: ${{ runner.os }}-rust-lint-${{ hashFiles('Cargo.toml') }}

- name: Rustfmt
run: cargo fmt --all -- --check
run: cd api && cargo fmt --all -- --check

- name: Clippy
run: cargo clippy
run: cd api && cargo clippy
4 changes: 2 additions & 2 deletions .github/workflows/web-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
node-version: '21.x'

- name: NPM Dependencies
run: npm ci
run: cd web && npm ci

- name: NPM Cache
uses: actions/cache@v2
Expand All @@ -29,4 +29,4 @@ jobs:
key: ${{ runner.os }}-node-${{ hashFiles('package.json') }}

- name: Build app
run: npm run build
run: cd web && npm run build
4 changes: 2 additions & 2 deletions .github/workflows/web-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ jobs:
node-version: '21.x'

- name: NPM Dependencies
run: npm ci
run: cd web && npm ci

- name: Build app
run: npm run build
run: cd web && npm run build

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
Expand Down

0 comments on commit fc78da5

Please sign in to comment.