diff --git a/.github/workflows/selenium.yml b/.github/workflows/selenium.yml index afdd6d7..30ba8bc 100644 --- a/.github/workflows/selenium.yml +++ b/.github/workflows/selenium.yml @@ -20,6 +20,12 @@ jobs: distribution: 'microsoft' java-version: 11 + - name: Set up Node + uses: actions/setup-node@v3 + with: + node-version: '16.x' + registry-url: 'https://registry.npmjs.org' + - name: Start containers run: | git clone https://github.com/svjis/svjis-docker.git @@ -47,21 +53,9 @@ jobs: - name: Install Google Chrome run: | - sudo apt install google-chrome-stable + npx @puppeteer/browsers install chrome@stable google-chrome --version - - name: Install ChromeDriver - run: | - CHROME_VERSION=$(google-chrome --version | cut -f 3 -d ' ' | cut -d '.' -f 1) \ - && CHROMEDRIVER_RELEASE=$(curl --location --fail --retry 3 http://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROME_VERSION}) \ - && curl --silent --show-error --location --fail --retry 3 --output /tmp/chromedriver_linux64.zip "http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_RELEASE/chromedriver_linux64.zip" \ - && cd /tmp \ - && unzip chromedriver_linux64.zip \ - && rm -rf chromedriver_linux64.zip \ - && sudo mv chromedriver /usr/local/bin/chromedriver \ - && sudo chmod +x /usr/local/bin/chromedriver \ - && chromedriver --version - - name: Run test run: mvn --no-transfer-progress package --file pom.xml