Skip to content

Commit

Permalink
Update to a targeted version of node.js in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rolljee committed Feb 1, 2024
1 parent 797dd0e commit eb83ed5
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 21 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/pull_request.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ jobs:
lint:
name: Lint
runs-on: ubuntu-20.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- name: Cache node modules
Expand All @@ -22,13 +21,12 @@ jobs:
${{ runner.os }}-
- uses: actions/setup-node@v4
with:
node-version: "18"
node-version: "18.17.1"
- uses: ./.github/actions/lint

unit-tests:
name: Unit Tests
runs-on: ubuntu-20.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- name: Cache node modules
Expand All @@ -44,13 +42,12 @@ jobs:
${{ runner.os }}-
- uses: actions/setup-node@v4
with:
node-version: "18"
node-version: "18.17.1"
- uses: ./.github/actions/unit-tests

functional-tests:
name: Functional Tests
runs-on: ubuntu-20.04
timeout-minutes: 30
needs: ['unit-tests', lint]
steps:
- uses: actions/checkout@v3
Expand All @@ -67,5 +64,5 @@ jobs:
${{ runner.os }}-
- uses: actions/setup-node@v4
with:
node-version: "18"
node-version: "18.17.1"
- uses: ./.github/actions/functional-tests
9 changes: 3 additions & 6 deletions .github/workflows/push_dev.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ jobs:
lint:
name: Lint
runs-on: ubuntu-20.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- name: Cache node modules
Expand All @@ -25,13 +24,12 @@ jobs:
${{ runner.os }}-
- uses: actions/setup-node@v4
with:
node-version: "18"
node-version: "18.17.1"
- uses: ./.github/actions/lint

unit-tests:
name: Unit Tests
runs-on: ubuntu-20.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- name: Cache node modules
Expand All @@ -47,13 +45,12 @@ jobs:
${{ runner.os }}-
- uses: actions/setup-node@v4
with:
node-version: "18"
node-version: "18.17.1"
- uses: ./.github/actions/unit-tests

functional-tests:
name: Functional Tests
runs-on: ubuntu-20.04
timeout-minutes: 30
needs: [unit-tests, lint]
steps:
- uses: actions/checkout@v3
Expand All @@ -70,5 +67,5 @@ jobs:
${{ runner.os }}-
- uses: actions/setup-node@v4
with:
node-version: "18"
node-version: "18.17.1"
- uses: ./.github/actions/functional-tests
9 changes: 3 additions & 6 deletions .github/workflows/push_master.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ jobs:
lint:
name: Lint
runs-on: ubuntu-20.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- name: Cache node modules
Expand All @@ -25,13 +24,12 @@ jobs:
${{ runner.os }}-
- uses: actions/setup-node@v4
with:
node-version: "18"
node-version: "18.17.1"
- uses: ./.github/actions/lint

unit-tests:
name: Unit Tests
runs-on: ubuntu-20.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- name: Cache node modules
Expand All @@ -47,13 +45,12 @@ jobs:
${{ runner.os }}-
- uses: actions/setup-node@v4
with:
node-version: "18"
node-version: "18.17.1"
- uses: ./.github/actions/unit-tests

functional-tests:
name: Functional Tests
runs-on: ubuntu-20.04
timeout-minutes: 30
needs: ['unit-tests', lint]
steps:
- uses: actions/checkout@v3
Expand All @@ -70,7 +67,7 @@ jobs:
${{ runner.os }}-
- uses: actions/setup-node@v4
with:
node-version: "18"
node-version: "18.17.1"
- uses: ./.github/actions/functional-tests

npm-deploy:
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kuzzle-plugin-prometheus",
"version": "4.1.0",
"version": "4.1.1",
"description": "Kuzzle plugin: monitoring Kuzzle using Prometheus",
"author": {
"name": "The Kuzzle Team <[email protected]>"
Expand Down

0 comments on commit eb83ed5

Please sign in to comment.