Skip to content

Commit

Permalink
Merge pull request #358 from formidablejs/feature/matrix-automated-ac…
Browse files Browse the repository at this point in the history
…tion

chore: add more node versions
  • Loading branch information
donaldp authored Aug 21, 2024
2 parents 24a58bf + f51c2e8 commit 0d65311
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/0-core-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@ jobs:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x, 22.x]

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Start Redis
uses: supercharge/[email protected]
- name: Install modules
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/1-e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
node-version: [18.x, 20.x]
node-version: [18.x, 20.x, 22.x]

steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/2-package-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- name: Install @formidablejs/installer
run: npm i -g @formidablejs/installer
- name: Create new app
Expand All @@ -27,6 +28,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- name: Install @formidablejs/installer
run: npm i -g @formidablejs/installer
- name: Install pnpm
Expand All @@ -45,6 +47,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- name: Install @formidablejs/installer
run: npm i -g @formidablejs/installer
- name: Create new app
Expand All @@ -58,6 +61,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- name: Install @formidablejs/installer
run: npm i -g @formidablejs/installer
- name: Install yarn
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/automated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,14 @@ jobs:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'

strategy:
matrix:
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v3
- name: Start Redis
uses: supercharge/[email protected]
- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version: 20
cache: 'npm'
- run: npm ci
- run: npm run build
Expand Down

0 comments on commit 0d65311

Please sign in to comment.