-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
46 lines (43 loc) · 1.41 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Selenium IDE Website Tester
description: Verify functionality on your website using Selenium tests from Selenium IDE.
author: Dylan700
branding:
icon: check-square
color: green
inputs:
url:
description: 'URL to test'
required: true
default: ""
token:
description: 'Github Token'
required: true
runs:
using: composite
steps:
- name: Pull Docker Image
shell: bash
run: |
echo ${{ inputs.token }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
docker pull ghcr.io/dylan700/selenium-ide-action:latest
- name: Create Screenshots Directory
shell: bash
run: mkdir -p $GITHUB_WORKSPACE/screenshots
- name: Create Reports Directory
shell: bash
run: mkdir -p $GITHUB_WORKSPACE/reports
- name: Run Dockerfile
shell: bash
run: docker run -v /dev/shm:/dev/shm -v ./:$GITHUB_WORKSPACE -e GITHUB_WORKSPACE=$GITHUB_WORKSPACE -e BASE_URL=${{inputs.url}} -u root ghcr.io/dylan700/selenium-ide-action:latest
- name: Upload Screenshots
uses: actions/upload-artifact@v3
with:
name: screenshots
path: ./screenshots/*.png
- name: Generate Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Selenium Test Report
path: ./reports/*.xml
reporter: jest-junit