Skip to content

Commit f181855

Browse files
authored
Test suite foundations (#574)
* Test suite foundations * Renamed job * Reverting yarn's version * Build fix * Fixed a reported vulnerability; Set up a test suite for initiate payments route
1 parent fb670c8 commit f181855

File tree

249 files changed

+3111
-111
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

249 files changed

+3111
-111
lines changed

.github/workflows/test.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Testing
2+
on: [push]
3+
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- uses: actions/setup-node@v1
10+
with:
11+
node-version: '23.x'
12+
- run: npm install -g yarn@2
13+
- run: yarn install
14+
- name: Build packages
15+
run: |
16+
yarn workspace @courselit/icons build
17+
yarn workspace @courselit/common-models build
18+
yarn workspace @courselit/utils build
19+
yarn workspace @courselit/text-editor build
20+
yarn workspace @courselit/state-management build
21+
yarn workspace @courselit/components-library build
22+
yarn workspace @courselit/common-widgets build
23+
- name: Running tests
24+
run: |
25+
yarn test
26+
working-directory: ./

.husky/pre-commit

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
yarn dlx lint-staged
4+
yarn dlx lint-staged
5+
yarn test
39.2 KB
Binary file not shown.
Binary file not shown.
252 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
289 KB
Binary file not shown.
412 KB
Binary file not shown.

0 commit comments

Comments
 (0)