diff --git a/.github/workflows/build_node_package.yml b/.github/workflows/build_node_package.yml index 6380edb..8531e90 100644 --- a/.github/workflows/build_node_package.yml +++ b/.github/workflows/build_node_package.yml @@ -7,7 +7,7 @@ on: description: 'JSON array of Node.js versions and parameters' required: false type: string - default: '[{"version": "20", "tests": true, "lint": true}]' + default: '[{"version": "24", "tests": true, "lint": true}]' jobs: build: diff --git a/.github/workflows/build_node_package_with_pgsql.yml b/.github/workflows/build_node_package_with_pgsql.yml index df10168..02197a0 100644 --- a/.github/workflows/build_node_package_with_pgsql.yml +++ b/.github/workflows/build_node_package_with_pgsql.yml @@ -3,11 +3,11 @@ name: Build and test npm package with PostgreSQL service on: workflow_call: inputs: - run_tests: - description: 'Run tests' + node: + description: 'JSON array of Node.js versions and parameters' required: false - type: boolean - default: false + type: string + default: '[{"version": "24", "tests": true, "lint": true}]' jobs: build: @@ -27,22 +27,23 @@ jobs: - 5432:5432 strategy: matrix: - node-version: [20.x] + node: ${{ fromJson(inputs.node)}} steps: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - name: Use Node.js ${{ inputs.node_version }} + - name: Use Node.js ${{ matrix.node.version }} uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0 with: - node-version: ${{ inputs.node_version }} + node-version: ${{ matrix.node.version }} - name: Install Dependencies run: npm ci - name: Run lint + if: ${{ fromJson(matrix.node.lint) }} run: npm run lint - name: Run tests - if: ${{ fromJson(inputs.run_tests) }} + if: ${{ fromJson(matrix.node.tests) }} run: npm run test diff --git a/.github/workflows/publish_node_package.yml b/.github/workflows/publish_node_package.yml index c736f4b..9e86561 100644 --- a/.github/workflows/publish_node_package.yml +++ b/.github/workflows/publish_node_package.yml @@ -22,7 +22,7 @@ on: description: 'Node.js version' required: false type: string - default: '20' + default: '24' npm_registry_url: description: 'NPM registry URL' required: false