diff --git a/.github/workflows/core.yaml b/.github/workflows/core.yaml index 314577bdd..db32bfeed 100644 --- a/.github/workflows/core.yaml +++ b/.github/workflows/core.yaml @@ -15,6 +15,9 @@ defaults: jobs: core-format: runs-on: ubuntu-latest + defaults: + run: + working-directory: ./ steps: - uses: actions/checkout@v4 @@ -25,9 +28,6 @@ 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: @@ -35,14 +35,15 @@ jobs: 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