Skip to content

Update selenium-python.yml #9

Update selenium-python.yml

Update selenium-python.yml #9

name: playwright/java
on:
workflow_dispatch:
inputs:
browser:
description: 'The browser to use'
default: 'chromium'
required: true
type: choice
options:
- chromium
- firefox
- webkit
jobs:
test:
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright/java:v1.44.0-jammy
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Test
run: |
./docker.sh --browser "${{ inputs.browser }}" --docker playwright/java
echo ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} > reporting/allure-results/java/job.url
env:
HOME: /root
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: artifact_test
path: reporting/
report:
needs: test
runs-on: ubuntu-latest
container:
image: openjdk:8-jre
env:
ALLURE: 2.27.0
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: artifact_test
path: reporting
- name: Report
run: |
curl https://github.com/allure-framework/allure2/releases/download/${ALLURE}/allure-${ALLURE}.zip -L -o /tmp/allure.zip
unzip /tmp/allure.zip -d /usr/local/
ln -s /usr/local/allure-${ALLURE}/bin/allure /usr/local/bin/allure
./allure.sh --browser ${{ inputs.browser }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: artifact_report
path: reporting
git commit -m "Github Commit"

Check failure on line 66 in .github/workflows/playwright-java.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/playwright-java.yml

Invalid workflow file

You have an error in your yaml syntax on line 66
git push origin main