Skip to content

Commit

Permalink
Start using Node.js v22 inside container
Browse files Browse the repository at this point in the history
upgrade from v16
  • Loading branch information
atodorov committed Jan 5, 2025
1 parent 3a6d808 commit 20e53e7
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/coverity_scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ jobs:
with:
python-version: 3.11

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22

- name: Install depenencies
run: |
sudo apt-get update
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,12 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22

- name: Run eslint
run: |
cd tcms/
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,17 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22

- name: test-for-missing-migrations
run: |
pip install -r requirements/devel.txt
Expand All @@ -54,11 +61,17 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22

- name: Create database
run: |
docker compose -f docker-compose.postgres pull db
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22

- name: npm audit
run: |
pushd tcms/
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,17 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22

- name: Configure ~/.tcms.conf for ${{ matrix.kiwitcms-url }}
run: |
echo "[tcms]" > ~/.tcms.conf
Expand Down Expand Up @@ -86,6 +92,11 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22

- name: Install Python dependencies
run: |
sudo apt-get update
Expand Down Expand Up @@ -124,6 +135,11 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22

- name: Execute tests
run: |
sudo apt-get update
Expand Down Expand Up @@ -159,11 +175,17 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22

- name: Create database
run: |
docker compose pull db
Expand Down Expand Up @@ -207,11 +229,17 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22

- name: Create database
run: |
docker compose -f docker-compose.postgres pull db
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile.buildroot
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
# checkov:skip=CKV_DOCKER_7:Ensure the base image uses a non latest version tag
FROM registry.access.redhat.com/ubi9-minimal

RUN microdnf -y --nodocs install python3.11-devel mariadb-connector-c-devel tar gzip make \
RUN microdnf -y module enable nodejs:22 && \
microdnf -y --nodocs install python3.11-devel mariadb-connector-c-devel tar gzip make \
postgresql-devel libffi-devel gcc gettext npm unzip which rust cargo findutils \
libjpeg-turbo-devel && \
microdnf -y --nodocs update && \
Expand Down

0 comments on commit 20e53e7

Please sign in to comment.