Skip to content

Commit

Permalink
Run yarn commands in correct workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
unknownskl committed Sep 15, 2024
1 parent 0df113b commit c529478
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
run: yarn

- name: Lint code
run: yarn lint
run: yarn workspace @greenlight/app lint


tests:
Expand All @@ -73,11 +73,15 @@ jobs:
key: ${{ runner.os }}-${{ runner.arch }}-npm-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-${{ runner.arch }}-npm-

- name: Enable corepack
run: |
corepack enable
- name: Install yarn dependencies
run: yarn

- name: Run tests
run: yarn test
run: yarn workspace @greenlight/app test
env:
XBOX_USERNAME: ${{ secrets.XBOX_USERNAME }}
XBOX_PASSWORD: ${{ secrets.XBOX_PASSWORD }}
Expand Down Expand Up @@ -154,6 +158,10 @@ jobs:
key: ${{ runner.os }}-${{ runner.arch }}-flatpak-builder-${{ hashFiles('flatpak/*') }}
restore-keys: ${{ runner.os }}-${{ runner.arch }}-flatpak-builder-

- name: Enable corepack
run: |
corepack enable
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: greenlight.flatpak
Expand Down Expand Up @@ -196,6 +204,10 @@ jobs:
key: ${{ runner.os }}-${{ runner.arch }}-npm-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-${{ runner.arch }}-npm-

- name: Enable corepack
run: |
corepack enable
- name: Install yarn dependencies
run: yarn

Expand Down

0 comments on commit c529478

Please sign in to comment.