mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Bumped CI to use Node 18 for majority of tests
refs https://github.com/TryGhost/Toolbox/issues/528 - we're moving towards making Node 18 our recommended version, so that involves ensuring all of CI is running Node 18 - we still have some Node 16 matrix runs to ensure compatibility
This commit is contained in:
parent
5152e0e042
commit
ec5f0eefd2
3 changed files with 8 additions and 8 deletions
2
.github/workflows/browser-tests.yml
vendored
2
.github/workflows/browser-tests.yml
vendored
|
@ -38,7 +38,7 @@ jobs:
|
|||
submodules: true
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '16.x'
|
||||
node-version: '18.x'
|
||||
cache: yarn
|
||||
|
||||
- name: Install Stripe-CLI
|
||||
|
|
2
.github/workflows/signup-form-tests.yml
vendored
2
.github/workflows/signup-form-tests.yml
vendored
|
@ -27,7 +27,7 @@ jobs:
|
|||
env:
|
||||
FORCE_COLOR: 0
|
||||
with:
|
||||
node-version: "16.13.0"
|
||||
node-version: "18.12.1"
|
||||
cache: yarn
|
||||
|
||||
- run: yarn --prefer-offline
|
||||
|
|
12
.github/workflows/test.yml
vendored
12
.github/workflows/test.yml
vendored
|
@ -24,7 +24,7 @@ jobs:
|
|||
env:
|
||||
FORCE_COLOR: 0
|
||||
with:
|
||||
node-version: '16.13.0'
|
||||
node-version: '18.12.1'
|
||||
cache: yarn
|
||||
|
||||
- uses: actions/cache@v3
|
||||
|
@ -54,7 +54,7 @@ jobs:
|
|||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "16.13.0"
|
||||
node-version: "18.12.1"
|
||||
|
||||
- run: yarn --prefer-offline
|
||||
- run: yarn workspace ghost-admin run test
|
||||
|
@ -98,7 +98,7 @@ jobs:
|
|||
env:
|
||||
FORCE_COLOR: 0
|
||||
with:
|
||||
node-version: '16.13.0'
|
||||
node-version: '18.12.1'
|
||||
cache: yarn
|
||||
|
||||
- name: Shutdown MySQL
|
||||
|
@ -160,7 +160,7 @@ jobs:
|
|||
- run: yarn test:unit
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
if: startsWith(matrix.node, '16')
|
||||
if: startsWith(matrix.node, '18')
|
||||
with:
|
||||
name: unit-coverage
|
||||
path: ghost/*/coverage/cobertura-coverage.xml
|
||||
|
@ -182,7 +182,7 @@ jobs:
|
|||
- DB: mysql8
|
||||
NODE_ENV: testing-mysql
|
||||
include:
|
||||
- node: 16.13.0
|
||||
- node: 18.12.1
|
||||
env:
|
||||
DB: sqlite3
|
||||
NODE_ENV: testing
|
||||
|
@ -245,7 +245,7 @@ jobs:
|
|||
echo "test_time=$(($endTime-$startTime))" >> $GITHUB_ENV
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
if: startsWith(matrix.node, '16') && contains(matrix.env.DB, 'mysql')
|
||||
if: startsWith(matrix.node, '18') && contains(matrix.env.DB, 'mysql')
|
||||
with:
|
||||
name: e2e-coverage
|
||||
path: |
|
||||
|
|
Loading…
Reference in a new issue