2021-07-01 06:41:30 +03:00
|
|
|
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
|
2021-07-02 04:06:06 +03:00
|
|
|
- run: git fetch --prune
|
2021-07-01 06:41:30 +03:00
|
|
|
- name: 'Setup root deps'
|
|
|
|
run: npm ci
|
|
|
|
- name: 'Setup dependencies'
|
|
|
|
run: npm run bootstrap
|
|
|
|
- name: 'Run tests'
|
2021-07-02 04:06:06 +03:00
|
|
|
run: npm run test -- --since origin/$GITHUB_BASE_REF --include-dependents
|