Skip to content

Commit

Permalink
Add steps to update system packages and install SELinux library in Ba…
Browse files Browse the repository at this point in the history
…stion UI tests action
  • Loading branch information
hervedombya committed Jan 23, 2025
1 parent 1edcf42 commit a82586e
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/actions/bastion-ui-tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,27 @@ inputs:
runs:
using: "composite"
steps:
- name: Update system packages
uses: ./.github/actions/run-command-ssh
with:
NODE: bastion
COMMAND: |
sudo yum update -y glibc
- name: Install SELinux library
uses: ./.github/actions/run-command-ssh
with:
NODE: bastion
COMMAND: |
sudo yum install -y libselinux-devel
- name: Install Chrome on Bastion
uses: ./.github/actions/run-command-ssh
with:
NODE: bastion
COMMAND: |
sudo yum groupinstall -y "Development Tools"
sudo yum install -y wget
wget http://ftp.gnu.org/gnu/libc/glibc-2.25.tar.gz
tar -xvzf glibc-2.25.tar.gz
cd glibc-2.25
mkdir build
cd build
../configure --prefix=/opt/glibc-2.25
make -j$(nproc)
sudo make install
sudo ln -sf /opt/glibc-2.25/lib/ld-2.25.so /lib64/ld-linux-x86-64.so.2
sudo ln -sf /opt/glibc-2.25/lib/libc-2.25.so /lib64/libc.so.6
sudo yum install -y ./google-chrome-stable_current_x86_64.rpm
- name: Run UI tests from Bastion
Expand All @@ -45,9 +49,11 @@ runs:
cd metalk8s/ui
rm -rf babel.config.js
CYPRESS_BASE_URL=\"${{ inputs.TARGET_URL }}\" npm run \"test:${{ inputs.TEST_FILTERS }}\"
- name: Create dest directory
shell: bash
run: mkdir -p "${{ inputs.DEST_DIR }}"

- name: Collect cypress screenshots from Bastion
shell: bash
env:
Expand Down

0 comments on commit a82586e

Please sign in to comment.