Skip to content

chore: update tests GH action #60

chore: update tests GH action

chore: update tests GH action #60

Workflow file for this run

name: Unit and Integration Tests
on:
pull_request:
types: [opened, edited, reopened, synchronize]
branches:
- main
merge_group:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
test:
name: Test
runs-on: ubuntu-latest
env:
DISPLAY: ':99.0'
steps:
- bash: |
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
echo ">>> Started xvfb"
displayName: Start xvfb
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'
cache: 'yarn'
- name: Install dependencies
run: yarn --immutable && yarn install
- name: Lint Project
run: yarn lint
- name: Test Project
run: yarn test