Skip to content

Commit

Permalink
Update kre.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
duyluonganh authored Nov 30, 2023
1 parent 9174efa commit 9eb3416
Showing 1 changed file with 23 additions and 18 deletions.
41 changes: 23 additions & 18 deletions .github/workflows/kre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,27 @@ on:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- name: Configure Xvfb on runner VM (required for KRE execution on Linux)
#if: runner.os == 'Linux'
run: |
sudo apt-get install -y xvfb libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xinput0 libxcb-xfixes0
sudo /usr/bin/Xvfb :0 -screen 0 1280x1024x24 &
#run: xvfb-run -a -n 0 -s "-screen 0 1024x768x24" &
- run: |
sudo apt-get update
sudo apt-get install openjdk-8-jre
- name: Checkout
uses: actions/checkout@v2
- name: Katalon Studio Github Action
uses: katalon-studio/[email protected]
with:
version: '7.8.1'
projectPath: '${{ github.workspace }}'
args: '-noSplash -retry=0 -browserType=Chrome -statusDelay=20 -testSuitePath="Test Suites/New Test Suite" -apiKey=${{ secrets.SECRET_KEY }} --config -webui.autoUpdateDrivers=true'
# - name: Configure Xvfb on runner VM (required for KRE execution on Linux)
# #if: runner.os == 'Linux'
# run: |
# sudo apt-get install -y xvfb libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xinput0 libxcb-xfixes0
# sudo /usr/bin/Xvfb :0 -screen 0 1280x1024x24 &
# #run: xvfb-run -a -n 0 -s "-screen 0 1024x768x24" &
# - run: |
# sudo apt-get update
# sudo apt-get install openjdk-8-jre
# - name: Checkout
# uses: actions/checkout@v2
# - name: Katalon Studio Github Action
# uses: katalon-studio/[email protected]
# with:
# version: '7.8.1'
# projectPath: '${{ github.workspace }}'
# args: '-noSplash -retry=0 -browserType=Chrome -statusDelay=20 -testSuitePath="Test Suites/New Test Suite" -apiKey=${{ secrets.SECRET_KEY }} --config -webui.autoUpdateDrivers=true'
- name: Docker pull
run: 'docker image pull katalonstudio/katalon:test'

- name: Katalon Run 1
run: 'docker run -t --rm -v "$(pwd)":/tmp/project katalonstudio/katalon katalonc.sh -projectPath=/tmp/project -noSplash -testSuitePath="Test Suites/New Test Suite" -apiKey=${{ secrets.SECRET_KEY }} --config -webui.autoUpdateDrivers=true'

0 comments on commit 9eb3416

Please sign in to comment.