Skip to content

Commit 61fecb2

Browse files
committed
build: split e2e and unit tests in ci
1 parent d68e5f4 commit 61fecb2

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,23 @@ jobs:
2525
- name: Lint code
2626
run: yarn lint
2727

28+
- name: Run unit tests
29+
run: yarn test:unit
30+
2831
- name: Download Datashare for Debian
2932
run: wget "https://github.com/ICIJ/datashare-installer/releases/download/${{ env.DATASHARE_VERSION }}/${{ env.DATASHARE_PACKAGE }}"
3033

3134
- name: Install Datashare
32-
run: sudo apt install -y ./${{ env.DATASHARE_PACKAGE }}
35+
run: sudo apt install --no-install-recommends -y ./${{ env.DATASHARE_PACKAGE }} -no-install-recommends
3336

3437
- name: Run Datashare in background
35-
run: mkdir -p tmp && yarn run test:datashare &
36-
37-
- name: Run all tests
38-
run: yarn test
38+
run: mkdir -p tmp && yarn run test:datashare &
39+
40+
- name: Build package for e2e tests
41+
run: yarn build && yarn test:pack
42+
43+
- name: Run e2e tests
44+
run: yarn test:e2e
3945

4046
release:
4147
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)