Skip to content

Commit

Permalink
Test working-directory setup
Browse files Browse the repository at this point in the history
  • Loading branch information
nkuba committed Nov 22, 2023
1 parent d0db65a commit 8616e88
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ defaults:
jobs:
core-format:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./
steps:
- uses: actions/checkout@v4

Expand All @@ -25,24 +28,22 @@ jobs:
cache: "yarn"
cache-dependency-path: "./yarn.lock"

- name: Install Dependencies in root
run: cd .. && yarn install --prefer-offline --frozen-lockfile

- name: Set up Node in core package
uses: actions/setup-node@v4
with:
node-version-file: "core/.nvmrc"
cache: "yarn"
cache-dependency-path: "core/yarn.lock"

- name: Install Dependencies in core package
- name: Install Dependencies in root
run: yarn install --prefer-offline --frozen-lockfile

- name: Make the script file executable
run: cd .. && chmod +x lint.sh
- name: Install Dependencies in core package
working-directory: ./core
run: yarn install --prefer-offline --frozen-lockfile

- name: Format
run: cd .. && yarn format -w core
run: yarn format -w core

core-build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 8616e88

Please sign in to comment.