Skip to content

Commit

Permalink
ci: only test latest for build, test, e2e and generator
Browse files Browse the repository at this point in the history
  • Loading branch information
domjtalbot committed Jan 8, 2023
1 parent 637ebd5 commit edcf6dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -37,6 +34,7 @@ jobs:
with:
affected: true
node_version: ${{ matrix.node_version }}
save_cache: ${{ matrix.node_version == 'latest' }}

test:
needs: [lint, build]
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -36,6 +33,7 @@ jobs:
with:
affected: true
node_version: ${{ matrix.node_version }}
save_cache: ${{ matrix.node_version == 'latest' }}

test:
needs: [lint, build]
Expand Down

0 comments on commit edcf6dd

Please sign in to comment.