Fixes #300 - server order inconsistent #241
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: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} # runs a test on Ubuntu, Windows and macOS | |
strategy: | |
matrix: | |
os: [macOS-latest, windows-latest, ubuntu-latest] | |
node: [16] | |
fail-fast: false | |
steps: | |
# SCM Checkout | |
- uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node }} | |
# NPM install and build | |
- run: npm install | |
- run: npm run build | |
# Run unit tests | |
- name: Run Unit tests | |
uses: GabrielBB/xvfb-action@fe2609f8182a9ed5aee7d53ff3ed04098a904df2 #v1.0 | |
with: | |
run: npm test | |
# Run UI Tests | |
- name: Run UI tests | |
uses: GabrielBB/xvfb-action@86d97bde4a65fe9b290c0b3fb92c2c4ed0e5302d #v1.6 | |
with: | |
run: npm run ui-test | |
options: -screen 0 2560x1440x24 | |
# Uploade codecov | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b #v2 | |
with: | |
file: ./coverage/coverage-final.json | |
# Archiving integration tests artifacts | |
- name: Upload test artifacts | |
uses: actions/upload-artifact@v2 | |
if: failure() && runner.os == 'Linux' | |
with: | |
name: artifacts-${{ matrix.os }} | |
path: | | |
test-resources/screenshots/*.png | |
retention-days: 2 |