Skip to content

Commit edd4108

Browse files
ci: run unit tests (yarn test) on push
The push workflow linted and typechecked but never ran the jest suite, so unit tests (e.g. FronteggNative bridging) were not enforced in CI. Add a Unit Tests job that runs `yarn test`.
1 parent fe69f3e commit edd4108

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/onPush.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,18 @@ jobs:
2929
run: |
3030
npm install -g license-checker
3131
license-checker --failOn "AGPL-1.0-only;AGPL-1.0-or-later;AGPL-3.0-only;AGPL-3.0-or-later;GPL-1.0-only;GPL-1.0-or-later;GPL-2.0-only;GPL-2.0-or-later;GPL-3.0-only;GPL-3.0-or-later;LGPL-2.0-only;LGPL-2.0-or-later;LGPL-2.1-only;LGPL-2.1-or-later;LGPL-3.0-only;LGPL-3.0-or-later;LGPLLR;MPL-1.1"
32+
test:
33+
name: 'Unit Tests'
34+
runs-on: ubuntu-latest
35+
steps:
36+
- name: Checkout
37+
uses: actions/checkout@v3
38+
39+
- name: Setup
40+
uses: ./.github/actions/setup
41+
42+
- name: Run unit tests
43+
run: yarn test
3244
build:
3345
name: 'Build'
3446
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)