chore: bump docker/setup-qemu-action from 2.2.0 to 3.1.0 #22
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "UI-Test" | |
on: | |
pull_request: | |
paths-ignore: | |
- 'LICENSE' | |
- 'docs/**' | |
push: | |
tags-ignore: | |
- 'v*' | |
paths-ignore: | |
- '.txt' | |
- '*.MD' | |
- '*.md' | |
- 'LICENSE' | |
- 'docs/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
# display name of the job | |
name: "Robot framework test" | |
steps: | |
# Uses an default action to checkout the code | |
- uses: actions/[email protected] | |
# Uses an action to add Python to the VM | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.7' | |
architecture: x64 | |
# Uses an action to add JDK 21 to the VM (and mvn?) | |
- name: set up JDK 21 | |
uses: actions/[email protected] | |
with: | |
distribution: 'temurin' | |
java-version: 21 | |
architecture: x64 | |
#Uses an action to set up a cache using a certain key based on the hash of the dependencies | |
- name: Cache Maven packages | |
uses: actions/[email protected] | |
with: | |
path: ~/.m2 | |
key: ubuntu-latest-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ubuntu-latest-m2- | |
- uses: BSFishy/pip-action@v1 | |
with: | |
packages: | | |
robotframework | |
robotframework-SeleniumLibrary | |
webdriver-manager | |
selenium==4.9.1 | |
# TODO https://github.com/robotframework/SeleniumLibrary/issues/1835 | |
- name: Run with Maven | |
run: mvn --no-transfer-progress spring-boot:run & | |
- name: Wait to start | |
uses: ifaxity/wait-on-action@v1 | |
with: | |
resource: http://127.0.0.1:8080/WebGoat | |
- name: Test with Robotframework | |
run: python3 -m robot --variable HEADLESS:"1" --outputdir robotreport robot/goat.robot | |
# send report to forks only due to limits on permission tokens | |
- name: Send report to commit | |
if: github.repository != 'WebGoat/WebGoat' && github.event_name == 'push' | |
uses: joonvena/[email protected] | |
with: | |
gh_access_token: ${{ secrets.GITHUB_TOKEN }} | |
report_path: 'robotreport' |