Skip to content

Commit

Permalink
ci: Add tests for Rocky Linux and UBI
Browse files Browse the repository at this point in the history
Tests for both regular and minimal versions. The minimal versions uses microdnf instead of dnf.
  • Loading branch information
vehagn authored and riosje committed Mar 27, 2024
1 parent 0f88890 commit 978daa5
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 6 deletions.
39 changes: 38 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
strategy:
matrix:
version: [18, 20, 21]
os: ["fedora:36", "amazonlinux:2023"]
os: ["fedora:36", "amazonlinux:2023", "rockylinux:9", "redhat/ubi9:latest"]
container:
image: ${{ matrix.os }}
defaults:
Expand Down Expand Up @@ -79,3 +79,40 @@ jobs:
echo "Node version is not ${{ matrix.version }}. It is $NODE_VERSION"
exit 1
fi
rpm-minimal:
name: "NodeJS ${{ matrix.version }}(${{ matrix.os }})"
runs-on: ubuntu-latest
strategy:
matrix:
version: [18, 20, 21]
os: ["rockylinux:9-minimal", "redhat/ubi9-minimal:latest"]
container:
image: ${{ matrix.os }}
defaults:
run:
shell: bash
steps:
- name: install git
run: |
microdnf update -y
microdnf install git -y
- name: Checkout Repo
uses: actions/checkout@v4

- name: Run Istallation Script
run: ./scripts/rpm/setup_${{ matrix.version }}.x

- name: Install Nodejs
run: |
microdnf install nodejs -y
- name: Validate Node Version
run: |
node -e "console.log(process.version)"
NODE_VERSION=$(node -e "console.log((process.version).split('.')[0])")
if [[ ${NODE_VERSION} != "v${{ matrix.version }}" ]]; then
echo "Node version is not ${{ matrix.version }}. It is $NODE_VERSION"
exit 1
fi
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,12 @@ NodeSource will continue to maintain the following architectures and may add add

#### **Redhat versions**

| Distro Name | Node 18x | Node 20x | Node 21x |
| :---------- | :------: | :------: | :------: |
| Redhat 7 ||||
| Redhat 8 ||||
| Redhat 9 ||||
| Distro Name | Node 18x | Node 20x | Node 21x |
|:-----------------| :------: | :------: | :------: |
| Redhat 7 ||||
| Redhat 8 ||||
| Redhat 9 ||||
| Redhat 9-minimal ||||

#### **Amazon Linux versions**

Expand Down

0 comments on commit 978daa5

Please sign in to comment.