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: Test | |
on: | |
push: | |
paths: | |
- 'packages/metastream-app/**' | |
pull_request: | |
paths: | |
- 'packages/metastream-app/**' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v2 | |
- name: Setup Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '12.x' | |
- name: Install dependencies | |
run: | | |
yarn install | |
- name: Build signal server | |
working-directory: ./packages/metastream-signal-server | |
run: | | |
yarn build | |
- name: Run tests | |
working-directory: ./packages/metastream-app | |
run: | | |
yarn test | |
env: | |
METASTREAM_SIGNAL_SERVER: ws://localhost:27064 | |
- name: Archive screenshots | |
uses: actions/upload-artifact@v2 | |
with: | |
name: screenshots | |
path: packages/metastream-app/test/artifacts/*.jpg |