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:
commit
aca6695fc3
3 changed files with 5 additions and 5 deletions
|
@ -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 }}
|
||||
|
|
4
.github/workflows/integration-test.yml
vendored
4
.github/workflows/integration-test.yml
vendored
|
@ -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 }}
|
||||
|
|
|
@ -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' }));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue