-
Notifications
You must be signed in to change notification settings - Fork 822
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run fidelity tests in Github Actions
- Loading branch information
Chris Joel
committed
Mar 11, 2020
1 parent
d311098
commit 7ede272
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
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
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 |