diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7fed8692..1c6f7cbd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,12 +18,9 @@ jobs: lint: uses: ./.github/workflows/_lint.yml secrets: inherit - strategy: - matrix: - node_version: [lts, latest] with: affected: true - node_version: ${{ matrix.node_version }} + node_version: lts save_cache: true build: @@ -37,6 +34,7 @@ jobs: with: affected: true node_version: ${{ matrix.node_version }} + save_cache: ${{ matrix.node_version == 'latest' }} test: needs: [lint, build] diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index e1803267..10eb23a9 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -17,12 +17,9 @@ jobs: lint: uses: ./.github/workflows/_lint.yml secrets: inherit - strategy: - matrix: - node_version: [lts, latest] with: affected: true - node_version: ${{ matrix.node_version }} + node_version: lts save_cache: true build: @@ -36,6 +33,7 @@ jobs: with: affected: true node_version: ${{ matrix.node_version }} + save_cache: ${{ matrix.node_version == 'latest' }} test: needs: [lint, build]