Skip to content

Commit

Permalink
Use yarn workspaces focus on some CI jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Aug 30, 2022
1 parent e60a49f commit 398499f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/ci.yml
Expand Up @@ -33,7 +33,7 @@ jobs:
with:
node-version: ${{matrix.node-version}}
- name: Install dependencies
run: corepack yarn install --immutable
run: corepack yarn workspaces focus $(corepack yarn workspaces list --json | jq -r .name | awk '/^@uppy-example/{ next } { if ($0!="uppy.io") print $0 }')
env:
# https://docs.cypress.io/guides/references/advanced-installation#Skipping-installation
CYPRESS_INSTALL_BINARY: 0
Expand Down Expand Up @@ -62,10 +62,8 @@ jobs:
with:
node-version: lts/*
- name: Install dependencies
run: corepack yarn install --immutable
env:
# https://docs.cypress.io/guides/references/advanced-installation#Skipping-installation
CYPRESS_INSTALL_BINARY: 0
# List all projects that use a custom ESLint config:
run: corepack yarn workspaces focus @uppy/angular angular-example @uppy-example/react-native-expo @uppy/react-native @uppy-dev/build
- name: Run linter
run: corepack yarn run lint

Expand All @@ -91,10 +89,7 @@ jobs:
with:
node-version: lts/*
- name: Install dependencies
run: corepack yarn install --immutable
env:
# https://docs.cypress.io/guides/references/advanced-installation#Skipping-installation
CYPRESS_INSTALL_BINARY: 0
run: corepack yarn workspaces focus @uppy-dev/build
- name: Run linter
run: corepack yarn run lint:markdown

Expand All @@ -120,7 +115,7 @@ jobs:
with:
node-version: lts/*
- name: Install dependencies
run: corepack yarn install --immutable
run: corepack yarn workspaces focus $(corepack yarn workspaces list --json | jq -r .name | awk '/^@uppy-example/{ next } { if ($0!="uppy.io") print $0 }')
env:
# https://docs.cypress.io/guides/references/advanced-installation#Skipping-installation
CYPRESS_INSTALL_BINARY: 0
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/companion.yml
Expand Up @@ -32,10 +32,7 @@ jobs:
with:
node-version: ${{matrix.node-version}}
- name: Install dependencies
run: corepack yarn install --immutable
env:
# https://docs.cypress.io/guides/references/advanced-installation#Skipping-installation
CYPRESS_INSTALL_BINARY: 0
run: corepack yarn workspaces focus @uppy/companion
- name: Run tests
run: corepack yarn run test:companion

0 comments on commit 398499f

Please sign in to comment.