0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-17 22:04:19 -05:00

Merge pull request #5152 from logto-io/gao-update-cli-check

refactor(cli): update node version check
This commit is contained in:
Gao Sun 2023-12-25 16:27:56 +08:00 committed by GitHub
commit aca6695fc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -43,7 +43,7 @@ jobs:
env:
INTEGRATION_TEST: true
steps:
- uses: logto-io/actions-package-logto-artifact@v1.0.0
- uses: logto-io/actions-package-logto-artifact@v1.1.0
with:
artifact-name: alteration-integration-test-${{ github.sha }}
branch: ${{github.base_ref}}
@ -60,7 +60,7 @@ jobs:
DB_URL: postgres://postgres:postgres@localhost:5432/postgres
steps:
- uses: logto-io/actions-run-logto-integration-tests@v1.0.0
- uses: logto-io/actions-run-logto-integration-tests@v1.1.0
with:
branch: ${{github.base_ref}}
logto_artifact: alteration-integration-test-${{ github.sha }}

View file

@ -18,7 +18,7 @@ jobs:
INTEGRATION_TEST: true
steps:
- uses: logto-io/actions-package-logto-artifact@v1.0.0
- uses: logto-io/actions-package-logto-artifact@v1.1.0
with:
artifact-name: integration-test-${{ github.sha }}
@ -34,7 +34,7 @@ jobs:
DB_URL: postgres://postgres:postgres@localhost:5432/postgres
steps:
- uses: logto-io/actions-run-logto-integration-tests@v1.0.0
- uses: logto-io/actions-run-logto-integration-tests@v1.1.0
with:
logto_artifact: integration-test-${{ github.sha }}
test_target: ${{ matrix.target }}

View file

@ -28,7 +28,7 @@ import { seedByPool } from '../database/seed/index.js';
const pgRequired = new semver.SemVer('14.0.0');
export const validateNodeVersion = () => {
const required = [new semver.SemVer('18.12.0')];
const required = [new semver.SemVer('20.9.0')];
const requiredVersionString = required.map((version) => '^' + version.version).join(' || ');
const current = new semver.SemVer(execSync('node -v', { encoding: 'utf8', stdio: 'pipe' }));