[tests] Fix File Watcher Utility test - close FileWatcher #2592
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
# This is a basic workflow | |
name: CI | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
# The type of runner that the job will run on | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
node: [ '18' ] | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
# Set up Node | |
- name: Use Node.js ${{ matrix.node }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
# Run install dependencies | |
- name: Install dependencies | |
run: npm ci | |
# Run tests | |
- name: Build and Test | |
uses: coactions/setup-xvfb@b6b4fcfb9f5a895edadc3bc76318fae0ac17c8b3 #v1.0.1 | |
env: | |
NODE_OPTIONS: --max_old_space_size=16384 | |
with: | |
run: npm run test:coverage --silent | |
# Upload coverage to codecov.io | |
- name: Codecov | |
uses: codecov/codecov-action@40a12dcee2df644d47232dde008099a3e9e4f865 #v3.1.2 | |
if: runner.os == 'Linux' | |
with: | |
file: ./out/coverage/coverage-final.json | |
# UI tests fail under linux | |
# Run UI tests | |
- name: Run UI Tests | |
uses: coactions/setup-xvfb@b6b4fcfb9f5a895edadc3bc76318fae0ac17c8b3 #v1.0.1 | |
env: | |
NODE_OPTIONS: --max_old_space_size=16384 | |
if: runner.os == 'Linux' | |
with: | |
run: npm run public-ui-test | |
options: -screen 0 1920x1080x24 | |
# Archiving integration tests artifacts | |
- name: Upload test artifacts | |
uses: actions/upload-artifact@v3 | |
if: failure() && runner.os == 'Linux' | |
with: | |
name: artifacts-${{ matrix.os }} | |
path: | | |
test-resources/screenshots/*.png | |
retention-days: 2 | |