Skip to content

Add unit tests

Add unit tests #2974

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: 👷 Install Dependencies
run: npm ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 🧪 Setup and Test with Runme
uses: coactions/setup-xvfb@v1
with:
run: npx runme run configureNPM setup build test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RUNME_PROJECT: ${{ github.workspace }}
- name: 🔼 Upload Artifacts
uses: actions/upload-artifact@v3
if: failure()
with:
name: screenshots
path: |
tests/e2e/screenshots
tests/e2e/logs
- name: 🐛 Debug Build
uses: stateful/vscode-server-action@v1
if: failure()
with:
timeout: '300000'