Skip to content

Commit

Permalink
chore: Add installation scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Jefferson committed Oct 27, 2023
1 parent af57eb0 commit e82d21e
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ jobs:
os: ["ubuntu:22.04", "debian:10"]
container:
image: ${{ matrix.os }}
env:
NODE_VERSION: ${{ matrix.version }}
defaults:
run:
shell: bash
steps:
- name: Update and Install Dependencies
run: |
Expand All @@ -31,7 +32,7 @@ jobs:
uses: actions/checkout@v4

- name: Run Istallation Script
run: ./scripts/nsolid_setup_deb.sh $NODE_VERSION
run: ./scripts/nsolid_setup_deb.sh ${{ matrix.version }}

- name: Install Nodejs
run: |
Expand All @@ -41,7 +42,7 @@ jobs:
run: |
node -e "console.log(process.version)"
NODE_VERSION=$(node -e "console.log((process.version).split('.')[0])")
if [[ ${NODE_VERSION} != "v20" ]]; then
if [[ ${NODE_VERSION} != "v1" ]]; then
echo "Node version is not ${{ matrix.version }}. It is $NODE_VERSION"
exit 1
fi
Expand All @@ -55,8 +56,9 @@ jobs:
os: ["fedora:36", "amazonlinux:2023"]
container:
image: ${{ matrix.os }}
env:
NODE_VERSION: ${{ matrix.version }}
defaults:
run:
shell: bash
steps:
- name: Update and Install Dependencies
run: |
Expand All @@ -67,7 +69,7 @@ jobs:
uses: actions/checkout@v4

- name: Run Istallation Script
run: ./scripts/nsolid_setup_rpm.sh $NODE_VERSION
run: ./scripts/nsolid_setup_rpm.sh ${{ matrix.version }}

- name: Install Nodejs
run: |
Expand All @@ -77,7 +79,7 @@ jobs:
run: |
node -e "console.log(process.version)"
NODE_VERSION=$(node -e "console.log((process.version).split('.')[0])")
if [[ ${NODE_VERSION} != "v20" ]]; then
if [[ ${NODE_VERSION} != "v1" ]]; then
echo "Node version is not ${{ matrix.version }}. It is $NODE_VERSION"
exit 1
fi

0 comments on commit e82d21e

Please sign in to comment.