From 6b12587da6e5b6d50f2fd8fc68ed075bc4b491a5 Mon Sep 17 00:00:00 2001 From: BinhTH-tsdv Date: Wed, 15 May 2024 10:52:02 +0700 Subject: [PATCH] feat(cypress): Add dependencies, running cypress test Signed-off-by: BinhTH-tsdv --- .../workflows/build-and-automation-test.yml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/build-and-automation-test.yml b/.github/workflows/build-and-automation-test.yml index ce65d8eb..55e1ceb4 100644 --- a/.github/workflows/build-and-automation-test.yml +++ b/.github/workflows/build-and-automation-test.yml @@ -140,3 +140,25 @@ jobs: mvn clean install --no-transfer-progress -DRunRestIntegrationTest=true cd ../ + - name: Install Nodejs + run: | + sudo apt-get update + curl -sL https://deb.nodesource.com/setup_20.x | sudo -E bash - + sudo apt install nodejs -y + nodejs -v + npm -v + + - name: Install Google Chrome + run: | + wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb + sudo dpkg -i google-chrome-stable_current_amd64.deb + google-chrome --version + + - name: Install dependencies of running sw360-frontend + run: | + sudo apt-get install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libnss3 libxss1 libasound2 libxtst6 xauth xvfb jq + npm i + + - name: run cypress + run: | + npx cypress run --browser chrome