meta: update CI checking for frontend packages

This commit is contained in:
Liam Fitzgerald 2021-07-01 13:41:30 +10:00
parent b5d98e78a6
commit 1cd54a685c
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB
2 changed files with 23 additions and 14 deletions

23
.github/workflows/frontend-test.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: frontend-test
on:
pull_request:
paths:
- 'pkg/interface/**'
- 'pkg/btc-wallet/**'
- 'pkg/npm/**'
jobs:
frontend-test:
runs-on: ubuntu-latest
name: "Test changed frontend packages"
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: 'Setup root deps'
run: npm ci
- name: 'Setup dependencies'
run: npm run bootstrap
- name: 'Run tests'
run: npm run test -- --since $GITHUB_BASE_REF --include-dependents

View File

@ -1,14 +0,0 @@
name: typescript-check
on:
pull_request:
paths:
- 'pkg/interface/**'
jobs:
typescript-check:
runs-on: ubuntu-latest
name: "Check pkg/interface types"
steps:
- uses: actions/checkout@v2
- run: cd 'pkg/interface' && npm i && npm run tsc