Partial fix for #595 - Add explicit check for java binary #325
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: ServerConnectorCI | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
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: | |
# Checkout | |
- uses: actions/checkout@v2 | |
# Setup node | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node }} | |
# Install from npm | |
- run: npm install | |
# Build the component | |
- run: npm run build | |
# Run Unit tests | |
- name: Run Unit tests | |
uses: GabrielBB/[email protected] | |
with: | |
run: npm test | |
# Run UI tests | |
- name: Run UI tests | |
if: runner.os == 'Linux' | |
uses: GabrielBB/[email protected] | |
with: | |
run: npm run public-ui-test | |
# Archive test artifacts | |
- name: Archiving test artifacts | |
uses: actions/upload-artifact@v2 | |
if: failure() | |
with: | |
name: artifacts-${{ matrix.os }} | |
path: | | |
test-resources/screenshots/*.png | |
retention-days: 2 | |
# Upload code coverage | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v2 | |
with: | |
file: ./coverage/coverage-final.json | |