Skip to content

Commit 0fa267c

Browse files
committed
test: seperate tests in ci
1 parent 5562540 commit 0fa267c

20 files changed

+290
-3509
lines changed

.github/workflows/on-push.yml

+118-36
Original file line numberDiff line numberDiff line change
@@ -48,39 +48,121 @@ jobs:
4848
with:
4949
name: lib-schema
5050
path: packages/lib/**/schema/
51-
52-
lib-tests:
53-
runs-on: ubuntu-latest
54-
needs: build
55-
defaults:
56-
run:
57-
working-directory: 'packages/lib'
58-
steps:
59-
- uses: actions/checkout@v2
60-
- uses: actions/setup-node@v3
61-
with:
62-
registry-url: 'https://npm.pkg.github.com'
63-
node-version: 18.0.0
64-
cache: 'yarn'
65-
- uses: actions/download-artifact@master
66-
with:
67-
name: lib-builds
68-
path: packages/lib
69-
- uses: actions/download-artifact@master
70-
with:
71-
name: lib-schema
72-
path: packages/lib
73-
- uses: actions/download-artifact@master
74-
with:
75-
name: lib-backend-builds
76-
path: packages/lib
77-
- name: Install
78-
run: yarn install
79-
env:
80-
NODE_AUTH_TOKEN: ${{ secrets.PACKAGE_PAT }}
81-
82-
- name: Unit Tests
83-
run: yarn test
84-
env:
85-
REACT_APP_ADDR_ENS_SUBDOMAIN: 'test.dm3.eth'
86-
DATABASE_URL: 'postgresql://postgres:[email protected]:5432'
51+
backend-test:
52+
runs-on: ubuntu-latest
53+
needs: build
54+
defaults:
55+
run:
56+
working-directory: 'packages/lib'
57+
steps:
58+
59+
- uses: actions/checkout@v1
60+
- id: workspace-test
61+
uses: ./test-action
62+
with:
63+
workspace-name: 'dm3-backend'
64+
package-pat: ${{ secrets.PACKAGE_PAT }}
65+
integration-test:
66+
runs-on: ubuntu-latest
67+
needs: build
68+
defaults:
69+
run:
70+
working-directory: 'packages/lib'
71+
steps:
72+
- uses: actions/checkout@v1
73+
- id: workspace-test
74+
uses: ./test-action
75+
with:
76+
workspace-name: 'dm3-integration-tests'
77+
package-pat: ${{ secrets.PACKAGE_PAT }}
78+
lib-crypto-test:
79+
runs-on: ubuntu-latest
80+
needs: build
81+
defaults:
82+
run:
83+
working-directory: 'packages/lib'
84+
steps:
85+
- uses: actions/checkout@v1
86+
- id: workspace-test
87+
uses: ./test-action
88+
with:
89+
workspace-name: 'dm3-lib-crypto'
90+
package-pat: ${{ secrets.PACKAGE_PAT }}
91+
lib-delivery-test:
92+
runs-on: ubuntu-latest
93+
needs: build
94+
defaults:
95+
run:
96+
working-directory: 'packages/lib'
97+
steps:
98+
- uses: actions/checkout@v1
99+
- id: workspace-test
100+
uses: ./test-action
101+
with:
102+
workspace-name: 'dm3-lib-delivery'
103+
package-pat: ${{ secrets.PACKAGE_PAT }}
104+
lib-messaging-test:
105+
runs-on: ubuntu-latest
106+
needs: build
107+
defaults:
108+
run:
109+
working-directory: 'packages/lib'
110+
steps:
111+
- uses: actions/checkout@v1
112+
- id: workspace-test
113+
uses: ./test-action
114+
with:
115+
workspace-name: 'dm3-lib-messaging'
116+
package-pat: ${{ secrets.PACKAGE_PAT }}
117+
lib-profile-test:
118+
runs-on: ubuntu-latest
119+
needs: build
120+
defaults:
121+
run:
122+
working-directory: 'packages/lib'
123+
steps:
124+
- uses: actions/checkout@v1
125+
- id: workspace-test
126+
uses: ./test-action
127+
with:
128+
workspace-name: 'dm3-lib-profile'
129+
package-pat: ${{ secrets.PACKAGE_PAT }}
130+
lib-shared-test:
131+
runs-on: ubuntu-latest
132+
needs: build
133+
defaults:
134+
run:
135+
working-directory: 'packages/lib'
136+
steps:
137+
- uses: actions/checkout@v1
138+
- id: workspace-test
139+
uses: ./test-action
140+
with:
141+
workspace-name: 'dm3-lib-shared'
142+
package-pat: ${{ secrets.PACKAGE_PAT }}
143+
lib-storage-test:
144+
runs-on: ubuntu-latest
145+
needs: build
146+
defaults:
147+
run:
148+
working-directory: 'packages/lib'
149+
steps:
150+
- uses: actions/checkout@v1
151+
- id: workspace-test
152+
uses: ./test-action
153+
with:
154+
workspace-name: 'dm3-lib-storage'
155+
package-pat: ${{ secrets.PACKAGE_PAT }}
156+
offchain-resolver-test:
157+
runs-on: ubuntu-latest
158+
needs: build
159+
defaults:
160+
run:
161+
working-directory: 'packages/lib'
162+
steps:
163+
- uses: actions/checkout@v1
164+
- id: workspace-test
165+
uses: ./test-action
166+
with:
167+
workspace-name: 'dm3-offchain-resolver'
168+
package-pat: ${{ secrets.PACKAGE_PAT }}

.husky/pre-commit

-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22
. "$(dirname "$0")/_/husky.sh"
33

44
yarn lint-staged
5-
yarn test --watchAll=false

packages/lib/offchainResolver/jest.config.js

-6
This file was deleted.

packages/lib/offchainResolver/package.json

-42
This file was deleted.

packages/lib/offchainResolver/src/dns/decodeDnsName.ts

-18
This file was deleted.

packages/lib/offchainResolver/src/dns/encodeEnsName.ts

-31
This file was deleted.

packages/lib/offchainResolver/src/encoding/decode/decodeAddr.ts

-21
This file was deleted.

packages/lib/offchainResolver/src/encoding/decode/decodeText.ts

-21
This file was deleted.

packages/lib/offchainResolver/src/encoding/decodeRequest.test.ts

-69
This file was deleted.

0 commit comments

Comments
 (0)