-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: speed up CI by skipping pnpm install of test apps (#1245)
- Loading branch information
Showing
10 changed files
with
38 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,12 +29,13 @@ jobs: | |
uses: actions/cache@v3 | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} | ||
key: ${{ runner.os }}-exclude-test-apps-${{ hashFiles('pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}- | ||
${{ runner.os }}-exclude-test-apps- | ||
- uses: pnpm/[email protected] | ||
with: | ||
run_install: true | ||
run_install: | | ||
- args: [--filter=\!./frameworks/\*/tests/apps/\*] | ||
- name: Extract version from package.json | ||
uses: sergeysova/[email protected] | ||
id: version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,12 +17,13 @@ jobs: | |
uses: actions/cache@v3 | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} | ||
key: ${{ runner.os }}-exclude-test-apps-${{ hashFiles('pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}- | ||
${{ runner.os }}-exclude-test-apps- | ||
- uses: pnpm/[email protected] | ||
with: | ||
run_install: true | ||
run_install: | | ||
- args: [--filter=\!./frameworks/\*/tests/apps/\*] | ||
- name: Update NPM token | ||
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc | ||
- id: checkApiVersion | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,12 +27,13 @@ jobs: | |
uses: actions/cache@v3 | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} | ||
key: ${{ runner.os }}-exclude-test-apps-${{ hashFiles('pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}- | ||
${{ runner.os }}-exclude-test-apps- | ||
- uses: pnpm/[email protected] | ||
with: | ||
run_install: true | ||
run_install: | | ||
- args: [--filter=\!./frameworks/\*/tests/apps/\*] | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,12 +27,13 @@ jobs: | |
uses: actions/cache@v3 | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} | ||
key: ${{ runner.os }}-exclude-test-apps-${{ hashFiles('pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}- | ||
${{ runner.os }}-exclude-test-apps- | ||
- uses: pnpm/[email protected] | ||
with: | ||
run_install: true | ||
run_install: | | ||
- args: [--filter=\!./frameworks/\*/tests/apps/\*] | ||
- run: cd .. && pnpm turbo run build --scope=@previewjs/loader --include-dependencies | ||
- name: Extract version from package.json | ||
uses: sergeysova/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,12 +27,13 @@ jobs: | |
uses: actions/cache@v3 | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} | ||
key: ${{ runner.os }}-exclude-test-apps-${{ hashFiles('pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}- | ||
${{ runner.os }}-exclude-test-apps- | ||
- uses: pnpm/[email protected] | ||
with: | ||
run_install: true | ||
run_install: | | ||
- args: [--filter=\!./frameworks/\*/tests/apps/\*] | ||
- run: cd .. && pnpm turbo run build --scope=@previewjs/loader --include-dependencies | ||
- name: Extract version from package.json | ||
uses: sergeysova/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,9 +62,9 @@ jobs: | |
uses: actions/cache@v3 | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} | ||
key: ${{ runner.os }}-full-${{ hashFiles('pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}- | ||
${{ runner.os }}-full- | ||
- uses: pnpm/[email protected] | ||
with: | ||
run_install: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,10 +35,11 @@ jobs: | |
uses: actions/cache@v3 | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} | ||
key: ${{ runner.os }}-exclude-test-apps-${{ hashFiles('pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}- | ||
${{ runner.os }}-exclude-test-apps- | ||
- uses: pnpm/[email protected] | ||
with: | ||
run_install: true | ||
run_install: | | ||
- args: [--filter=\!./frameworks/\*/tests/apps/\*] | ||
- run: pnpm turbo run build --scope="@previewjs/cli" --include-dependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,12 +39,13 @@ jobs: | |
uses: actions/cache@v3 | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} | ||
key: ${{ runner.os }}-exclude-test-apps-${{ hashFiles('pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}- | ||
${{ runner.os }}-exclude-test-apps- | ||
- uses: pnpm/[email protected] | ||
with: | ||
run_install: true | ||
run_install: | | ||
- args: [--filter=\!./frameworks/\*/tests/apps/\*] | ||
- run: pnpm lint | ||
- run: pnpm check-licenses | ||
- run: pnpm check-deps | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,12 +39,13 @@ jobs: | |
uses: actions/cache@v3 | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} | ||
key: ${{ runner.os }}-exclude-test-apps-${{ hashFiles('pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}- | ||
${{ runner.os }}-exclude-test-apps- | ||
- uses: pnpm/[email protected] | ||
with: | ||
run_install: true | ||
run_install: | | ||
- args: [--filter=\!./frameworks/\*/tests/apps/\*] | ||
- run: pnpm turbo run build --scope=@previewjs/intellij-controller --include-dependencies | ||
- run: cd integrations/intellij && ./gradlew ktlintCheck | ||
- run: cd integrations/intellij && ./gradlew runPluginVerifier | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,11 +35,12 @@ jobs: | |
uses: actions/cache@v3 | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} | ||
key: ${{ runner.os }}-exclude-test-apps-${{ hashFiles('pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}- | ||
${{ runner.os }}-exclude-test-apps- | ||
- uses: pnpm/[email protected] | ||
with: | ||
run_install: true | ||
run_install: | | ||
- args: [--filter=\!./frameworks/\*/tests/apps/\*] | ||
- run: pnpm turbo run build --scope="@previewjs/loader" --include-dependencies | ||
- run: cd integrations/vscode && pnpm build |