Skip to content

Commit

Permalink
fix: ubuntu version and deps issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rolljee committed Dec 18, 2024
1 parent 699f180 commit 8ef4738
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-22.04
runs-on: ubuntu-20.04
permissions:
actions: read
contents: read
Expand Down
17 changes: 7 additions & 10 deletions .github/workflows/workflow-deployments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
doc-deploy:
name: Documentation - Deploy
if: ${{ (github.event_name != 'workflow_dispatch' || inputs.doc_deploy) && (github.ref_name == 'master' || github.ref_name == 'beta') }}
runs-on: ubuntu-22.04
runs-on: ubuntu-20.04
steps:
- name: Checkout project
uses: actions/checkout@v4
Expand All @@ -86,7 +86,7 @@ jobs:
npm-deploy:
name: Build and deploy release on NPM.js
if: ${{ (github.event_name != 'workflow_dispatch' || inputs.npm_deploy) && (github.ref_name == 'master' || github.ref_name == 'beta') }}
runs-on: ubuntu-22.04
runs-on: ubuntu-20.04
permissions:
contents: write
issues: write
Expand All @@ -95,9 +95,6 @@ jobs:
- name: Checkout project
uses: actions/checkout@v4

- name: Install additional libraries
uses: ./.github/actions/install-packages

- name: Node version ${{ inputs.node_lts_current_version }}
uses: actions/setup-node@v4
with:
Expand All @@ -122,7 +119,7 @@ jobs:
publish-runner:
name: Kuzzle runner Docker image
needs: [npm-deploy]
runs-on: ubuntu-22.04
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [16, 18, 20]
Expand Down Expand Up @@ -154,7 +151,7 @@ jobs:
publish-plugin-dev:
name: Kuzzle plugin-dev Docker image
needs: [npm-deploy]
runs-on: ubuntu-22.04
runs-on: ubuntu-20.04
steps:
- name: Checkout project
uses: actions/checkout@v4
Expand Down Expand Up @@ -191,7 +188,7 @@ jobs:
publish-kuzzle-core:
name: Kuzzle core Docker image
needs: [npm-deploy]
runs-on: ubuntu-22.04
runs-on: ubuntu-20.04
steps:
- name: Checkout project
uses: actions/checkout@v4
Expand Down Expand Up @@ -228,7 +225,7 @@ jobs:
publish-core-dev:
name: Kuzzle core-dev Docker image
needs: [npm-deploy]
runs-on: ubuntu-22.04
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -258,7 +255,7 @@ jobs:
publish-elasticsearch:
name: Elasticsearch Docker image
needs: [npm-deploy]
runs-on: ubuntu-22.04
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4

Expand Down
29 changes: 7 additions & 22 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ env:
jobs:
prepare-matrix:
name: Forge Node LTS Matrix
runs-on: ubuntu-22.04
runs-on: ubuntu-20.04
steps:
- id: set-matrix
run: |
Expand All @@ -35,14 +35,11 @@ jobs:

error-codes-check:
name: Documentation - Error codes check
runs-on: ubuntu-22.04
runs-on: ubuntu-20.04
steps:
- name: Checkout project
uses: actions/checkout@v4

- name: Install additional libraries
uses: ./.github/actions/install-packages

- name: Node version ${{ env.NODE_LTS_ACTIVE_VERSION }}
uses: actions/setup-node@v4
with:
Expand All @@ -56,15 +53,12 @@ jobs:

lint:
name: Lint - Node.js
runs-on: ubuntu-22.04
runs-on: ubuntu-20.04
needs: [prepare-matrix]
steps:
- name: Checkout project
uses: actions/checkout@v4

- name: Install additional libraries
uses: ./.github/actions/install-packages

- name: Node version ${{ env.NODE_LTS_CURRENT_VERSION }}
uses: actions/setup-node@v4
with:
Expand All @@ -84,14 +78,11 @@ jobs:
strategy:
matrix:
node-version: ${{ fromJson(needs.prepare-matrix.outputs.matrix).node-version }}
runs-on: ubuntu-22.04
runs-on: ubuntu-20.04
steps:
- name: Checkout project
uses: actions/checkout@v4

- name: Install additional libraries
uses: ./.github/actions/install-packages

- name: Node version ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
Expand All @@ -109,7 +100,7 @@ jobs:
build-and-run-kuzzle:
needs: [unit-tests, prepare-matrix]
name: Build and Run
runs-on: ubuntu-22.04
runs-on: ubuntu-20.04
strategy:
matrix:
kuzzle-image: ["kuzzle"]
Expand All @@ -132,14 +123,11 @@ jobs:
test-set: ${{ fromJson(needs.prepare-matrix.outputs.test-set).test-set }}
node-version: ${{ fromJson(needs.prepare-matrix.outputs.matrix).node-version }}
es-version: ${{ fromJson(needs.prepare-matrix.outputs.es-matrix).es-version }}
runs-on: ubuntu-22.04
runs-on: ubuntu-20.04
steps:
- name: Checkout project
uses: actions/checkout@v4

- name: Install additional libraries
uses: ./.github/actions/install-packages

- name: Node version ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
Expand All @@ -155,7 +143,7 @@ jobs:
cluster-monkey-tests:
name: Cluster Monkey Tests
needs: [functional-tests, build-and-run-kuzzle, prepare-matrix]
runs-on: ubuntu-22.04
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: ${{ fromJson(needs.prepare-matrix.outputs.matrix).node-version }}
Expand All @@ -164,9 +152,6 @@ jobs:
- name: Checkout project
uses: actions/checkout@v4

- name: Install additional libraries
uses: ./.github/actions/install-packages

- name: Cloning Monkey Tester
uses: actions/checkout@v4
with:
Expand Down

0 comments on commit 8ef4738

Please sign in to comment.