diff --git a/.github/workflows/examples-integration.yaml b/.github/workflows/examples-integration.yaml index 015c5b420..e8e014b2e 100644 --- a/.github/workflows/examples-integration.yaml +++ b/.github/workflows/examples-integration.yaml @@ -16,7 +16,7 @@ jobs: - uses: actions/setup-node@v4 with: node-version: '20' - - uses: pnpm/action-setup@v2 + - uses: pnpm/action-setup@v4 with: version: 10 - run: pnpm install diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index 24130707c..969c3cb75 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -4,10 +4,20 @@ on: branches: - main - v1 + paths-ignore: + - '**.md' + - 'docs/**' + - '.github/ISSUE_TEMPLATE/**' + - '.github/PULL_REQUEST_TEMPLATE/**' pull_request: branches: - main - v1 + paths-ignore: + - '**.md' + - 'docs/**' + - '.github/ISSUE_TEMPLATE/**' + - '.github/PULL_REQUEST_TEMPLATE/**' workflow_dispatch: workflow_call: @@ -47,7 +57,7 @@ jobs: uses: actions/checkout@v4 - name: Setup pnpm - uses: pnpm/action-setup@v2 + uses: pnpm/action-setup@v4 with: version: 10 @@ -55,7 +65,19 @@ jobs: uses: actions/setup-node@v4 with: node-version: '22' - cache: 'pnpm' + + - name: Get pnpm store directory + id: pnpm-cache + run: echo "dir=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT" + + - name: Set up pnpm store cache + uses: actions/cache@v4 + with: + path: ${{ steps.pnpm-cache.outputs.dir }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- + save-always: true - name: Install dependencies run: pnpm install @@ -103,7 +125,7 @@ jobs: run: tar -xzf workspace.tar.gz && rm workspace.tar.gz - name: Setup pnpm - uses: pnpm/action-setup@v2 + uses: pnpm/action-setup@v4 with: version: 10 @@ -111,7 +133,18 @@ jobs: uses: actions/setup-node@v4 with: node-version: '22' - cache: 'pnpm' + + - name: Get pnpm store directory + id: pnpm-cache + run: echo "dir=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT" + + - name: Restore pnpm store (no save) + uses: actions/cache/restore@v4 + with: + path: ${{ steps.pnpm-cache.outputs.dir }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- - name: Install dependencies run: pnpm install --frozen-lockfile @@ -208,7 +241,7 @@ jobs: git config --global user.email "ci@example.com" - name: Setup pnpm - uses: pnpm/action-setup@v2 + uses: pnpm/action-setup@v4 with: version: 10 @@ -216,7 +249,18 @@ jobs: uses: actions/setup-node@v4 with: node-version: '22' - cache: 'pnpm' + + - name: Get pnpm store directory + id: pnpm-cache + run: echo "dir=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT" + + - name: Restore pnpm store (no save) + uses: actions/cache/restore@v4 + with: + path: ${{ steps.pnpm-cache.outputs.dir }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- - name: Install dependencies run: pnpm install --frozen-lockfile @@ -316,7 +360,7 @@ jobs: git config --global user.email "ci@example.com" - name: Setup pnpm - uses: pnpm/action-setup@v2 + uses: pnpm/action-setup@v4 with: version: 10 @@ -324,7 +368,18 @@ jobs: uses: actions/setup-node@v4 with: node-version: '22' - cache: 'pnpm' + + - name: Get pnpm store directory + id: pnpm-cache + run: echo "dir=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT" + + - name: Restore pnpm store (no save) + uses: actions/cache/restore@v4 + with: + path: ${{ steps.pnpm-cache.outputs.dir }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- - name: Install dependencies run: pnpm install --frozen-lockfile