Skip to content

Commit

Permalink
Run fidelity tests in Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Joel committed Mar 11, 2020
1 parent d311098 commit 7ede272
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/fidelity-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Fidelity tests

on: [pull_request]

jobs:
tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.x'

- name: Get npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- name: Cache npm packages
uses: actions/cache@v1
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: NPM install
run: npm ci

- name: Lint TypeScript sources
run: npm run lint

- name: Bootstrap packages
run: npm run bootstrap

- name: Build packages
run: npm run build

- name: Fidelity tests
uses: GabrielBB/xvfb-action@v1.0
run: |
cd ./packages/render-fidelity-tools
npm run test

0 comments on commit 7ede272

Please sign in to comment.