Skip to content

Extension tests

Extension tests #198

Workflow file for this run

name: Extension tests
on: push
jobs:
extension_tests:
name: Extension tests
env:
CI: true
strategy:
matrix:
node-version: [22.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/[email protected]
with:
submodules: "true"
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
- name: Lint source
run: |
npm run ci:all
npm run eslint-check
- name: Run prettier if not Windows
if: matrix.os != 'windows-latest'
run: npm run prettier-check
- name: Setup backend
run: |
cd backend
npm run setup
chmod -R +x cli
cd ..
- name: Unit tests
uses: coactions/[email protected]
with:
run: npm test
playwright_tests:
name: Playwright tests
env:
CI: true
strategy:
matrix:
node-version: [22.x]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/[email protected]
with:
submodules: "true"
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
- name: Setup
run: |
npm run ci:all
cd backend
npm run setup
chmod -R +x cli
cd ..
npm run pretest
- name: Start backend
run: npm run backend:start &
- name: Playwright tests
run: npm run playwright-test
- uses: actions/[email protected]
if: failure()
with:
name: test-results
path: ./test-results/
if-no-files-found: ignore
- uses: actions/[email protected]
if: failure()
with:
name: playwright-html-report
path: ./playwright-report/index.html
if-no-files-found: ignore