diff --git a/.github/workflows/release-cli.yaml b/.github/workflows/release-cli.yaml index f756328ecaa..28830addf51 100644 --- a/.github/workflows/release-cli.yaml +++ b/.github/workflows/release-cli.yaml @@ -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/action-setup@v2.2.4 with: - run_install: true + run_install: | + - args: [--filter=\!./frameworks/\*/tests/apps/\*] - name: Extract version from package.json uses: sergeysova/jq-action@v2.2.1 id: version diff --git a/.github/workflows/release-components.yaml b/.github/workflows/release-components.yaml index 28fa89f850b..cd7e22381ee 100644 --- a/.github/workflows/release-components.yaml +++ b/.github/workflows/release-components.yaml @@ -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/action-setup@v2.2.4 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 diff --git a/.github/workflows/release-intellij-plugin.yaml b/.github/workflows/release-intellij-plugin.yaml index 431d7732ac5..7d4d18748d6 100644 --- a/.github/workflows/release-intellij-plugin.yaml +++ b/.github/workflows/release-intellij-plugin.yaml @@ -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/action-setup@v2.2.4 with: - run_install: true + run_install: | + - args: [--filter=\!./frameworks/\*/tests/apps/\*] - name: Set up JDK 11 uses: actions/setup-java@v3 with: diff --git a/.github/workflows/release-vscode-extension.yaml b/.github/workflows/release-vscode-extension.yaml index 1fee6ada3ef..40845d4e492 100644 --- a/.github/workflows/release-vscode-extension.yaml +++ b/.github/workflows/release-vscode-extension.yaml @@ -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/action-setup@v2.2.4 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/jq-action@v2.2.1 diff --git a/.github/workflows/release-vscodium-extension.yaml b/.github/workflows/release-vscodium-extension.yaml index 0c1f030981f..a8007538179 100644 --- a/.github/workflows/release-vscodium-extension.yaml +++ b/.github/workflows/release-vscodium-extension.yaml @@ -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/action-setup@v2.2.4 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/jq-action@v2.2.1 diff --git a/.github/workflows/test-app-e2e.yaml b/.github/workflows/test-app-e2e.yaml index 4262ae267d0..8060789c163 100644 --- a/.github/workflows/test-app-e2e.yaml +++ b/.github/workflows/test-app-e2e.yaml @@ -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/action-setup@v2.2.4 with: run_install: true diff --git a/.github/workflows/test-cli.yaml b/.github/workflows/test-cli.yaml index 0ca68ad080e..ec0ac5fee26 100644 --- a/.github/workflows/test-cli.yaml +++ b/.github/workflows/test-cli.yaml @@ -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/action-setup@v2.2.4 with: - run_install: true + run_install: | + - args: [--filter=\!./frameworks/\*/tests/apps/\*] - run: pnpm turbo run build --scope="@previewjs/cli" --include-dependencies diff --git a/.github/workflows/test-core-components.yaml b/.github/workflows/test-core-components.yaml index da52dc7977e..a32056697d8 100644 --- a/.github/workflows/test-core-components.yaml +++ b/.github/workflows/test-core-components.yaml @@ -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/action-setup@v2.2.4 with: - run_install: true + run_install: | + - args: [--filter=\!./frameworks/\*/tests/apps/\*] - run: pnpm lint - run: pnpm check-licenses - run: pnpm check-deps diff --git a/.github/workflows/test-intellij.yaml b/.github/workflows/test-intellij.yaml index 59d70479daa..0ddbdaf9026 100644 --- a/.github/workflows/test-intellij.yaml +++ b/.github/workflows/test-intellij.yaml @@ -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/action-setup@v2.2.4 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 diff --git a/.github/workflows/test-vscode.yaml b/.github/workflows/test-vscode.yaml index a51c67a20bb..72dd2a9a00e 100644 --- a/.github/workflows/test-vscode.yaml +++ b/.github/workflows/test-vscode.yaml @@ -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/action-setup@v2.2.4 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