Test UI #10
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: Test UI | |
on: | |
workflow_dispatch: | |
jobs: | |
test-ubuntu: | |
name: Build the repository on Ubuntu | |
runs-on: ubuntu-latest | |
steps: | |
# Make sure build is clean and no files from a previous run are re-used. | |
- name: Cleanup files before run | |
run: | | |
rm -rf * | |
if: ${{ always() }} | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Use Node.js 20 | |
uses: actions/[email protected] | |
with: | |
node-version: 20.x | |
cache: 'yarn' | |
- name: Install node packages | |
run: yarn install | |
- name: Install dpkg, fakeroot and rpm | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install -y dpkg fakeroot rpm libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libxkbcommon0 libgtk-3-0 libpango-1.0-0 libcairo2 libgdk-pixbuf2.0-0 libgbm1 libasound2 libatspi2.0-0 | |
- name: Provide 777 execution rights to clipboard handler script | |
run: | | |
sudo chmod 777 node_modules/clipboard-event/platform/clipboard-event-handler-linux | |
- name: Set JAPREADER_ENV to 'production' | |
run: export JAPREADER_ENV=production | |
- name: Set NODE_ENV to 'production' | |
run: export NODE_ENV=production | |
- name: Set envionment variables | |
run: | | |
export CLEAR_TOKENS=true | |
export JAPREADER_LOGS=silly | |
export PLAYWRIGHT=true | |
export DEBUG=pw:browser*,pw:api | |
export DEBUG_FILE=playwright.log | |
- name: Package | |
run: yarn package | |
- run: tree out/ | |
- name: Run headless test | |
uses: coactions/setup-xvfb@v1 | |
with: | |
options: -screen 0 1280x960x24 | |
run: yarn test:ui | |
- run: tree out/ | |
- name: Upload a Test Artifact | |
if: always() | |
uses: actions/[email protected] | |
with: | |
name: playwright-output | |
path: test-results | |
retention-days: 28 |