Skip to content

Commit 71f4f46

Browse files
authored
chore(medusa): cleanup medusa package (#7206)
1 parent 8b61dcc commit 71f4f46

File tree

1,452 files changed

+4699
-234742
lines changed

Some content is hidden

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

1,452 files changed

+4699
-234742
lines changed

.changeset/config.json

-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
"updateInternalDependencies": "patch",
1010
"ignore": [
1111
"integration-tests-api",
12-
"integration-tests-plugins",
1312
"integration-tests-modules",
14-
"integration-tests-repositories",
1513
"@medusajs/dashboard",
1614
"@medusajs/admin-shared",
1715
"@medusajs/admin-bundler",

.github/actions/cache-deps/action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ runs:
1111
with:
1212
path: |
1313
.yarn/cache
14-
key: ${{ runner.os }}-yarn-${{inputs.extension}}-v8-${{ hashFiles('**/yarn.lock') }}
14+
key: ${{ runner.os }}-yarn-${{inputs.extension}}-v8-${{ hashFiles('**/yarn.lock') }}-3
1515
restore-keys: |
16-
${{ runner.os }}-yarn-${{inputs.extension}}-v8
16+
${{ runner.os }}-yarn-${{inputs.extension}}-v8-3
1717
# We want to only bootstrap and install if no cache is found.
1818
- run: yarn install --immutable
1919
shell: bash

.github/workflows/action.yml

+73-156
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ name: Medusa Pipeline
22
on:
33
push:
44
branches:
5-
- develop
6-
- v1.x
5+
- develop
6+
- v1.x
77
pull_request:
88
branches:
9-
- develop
10-
- v1.x
9+
- develop
10+
- v1.x
1111

1212
jobs:
1313
setup:
@@ -157,75 +157,75 @@ jobs:
157157
DB_PASSWORD: postgres
158158
DB_USERNAME: postgres
159159

160-
integration-tests-api-matrix:
161-
needs: setup
162-
name: Shard (${{ matrix.chunk }}) API Integration Tests
163-
runs-on: ubuntu-latest
164-
strategy:
165-
fail-fast: false
166-
matrix:
167-
chunk: ${{ fromJSON(needs.setup.outputs.api-matrix) }}
168-
env:
169-
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
170-
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
171-
172-
services:
173-
redis:
174-
image: redis
175-
options: >-
176-
--health-cmd "redis-cli ping"
177-
--health-interval 1s
178-
--health-timeout 10s
179-
--health-retries 10
180-
ports:
181-
- 6379:6379
182-
postgres:
183-
image: postgres
184-
env:
185-
POSTGRES_PASSWORD: postgres
186-
POSTGRES_USER: postgres
187-
options: >-
188-
--health-cmd pg_isready
189-
--health-interval 1s
190-
--health-timeout 10s
191-
--health-retries 10
192-
ports:
193-
- 5432:5432
194-
195-
steps:
196-
- name: Checkout
197-
uses: actions/checkout@v3
198-
with:
199-
fetch-depth: 0
200-
201-
- name: Install dependencies
202-
uses: ./.github/actions/cache-deps
203-
with:
204-
extension: pipeline
205-
206-
- name: Run API integration tests
207-
run: yarn test:integration:api
208-
env:
209-
DB_USERNAME: postgres
210-
DB_PASSWORD: postgres
211-
NODE_OPTIONS: "--max_old_space_size=4096"
212-
CHUNK: ${{ matrix.chunk }}
213-
CHUNKS: ${{ needs.setup.outputs.api-chunks }}
214-
215-
integration-tests-api:
216-
if: ${{ always() }}
217-
runs-on: ubuntu-latest
218-
needs: integration-tests-api-matrix
219-
steps:
220-
- run: exit 1
221-
if: >-
222-
${{
223-
contains(needs.integration-tests-api-matrix.result, 'failure')
224-
|| contains(needs.integration-tests-api-matrix.result, 'cancelled')
225-
|| contains(needs.integration-tests-api-matrix.result, 'skipped')
226-
}}
227-
- run: exit 0
228-
if: ${{ contains(needs.integration-tests-api-matrix.result, 'success') }}
160+
#integration-tests-api-matrix:
161+
# needs: setup
162+
# name: Shard (${{ matrix.chunk }}) API Integration Tests
163+
# runs-on: ubuntu-latest
164+
# strategy:
165+
# fail-fast: false
166+
# matrix:
167+
# chunk: ${{ fromJSON(needs.setup.outputs.api-matrix) }}
168+
# env:
169+
# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
170+
# TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
171+
#
172+
# services:
173+
# redis:
174+
# image: redis
175+
# options: >-
176+
# --health-cmd "redis-cli ping"
177+
# --health-interval 1s
178+
# --health-timeout 10s
179+
# --health-retries 10
180+
# ports:
181+
# - 6379:6379
182+
# postgres:
183+
# image: postgres
184+
# env:
185+
# POSTGRES_PASSWORD: postgres
186+
# POSTGRES_USER: postgres
187+
# options: >-
188+
# --health-cmd pg_isready
189+
# --health-interval 1s
190+
# --health-timeout 10s
191+
# --health-retries 10
192+
# ports:
193+
# - 5432:5432
194+
195+
# steps:
196+
# - name: Checkout
197+
# uses: actions/checkout@v3
198+
# with:
199+
# fetch-depth: 0
200+
#
201+
# - name: Install dependencies
202+
# uses: ./.github/actions/cache-deps
203+
# with:
204+
# extension: pipeline
205+
#
206+
# - name: Run API integration tests
207+
# run: yarn test:integration:api
208+
# env:
209+
# DB_USERNAME: postgres
210+
# DB_PASSWORD: postgres
211+
# NODE_OPTIONS: "--max_old_space_size=4096"
212+
# CHUNK: ${{ matrix.chunk }}
213+
# CHUNKS: ${{ needs.setup.outputs.api-chunks }}
214+
215+
#integration-tests-api:
216+
# if: ${{ always() }}
217+
# runs-on: ubuntu-latest
218+
# needs: integration-tests-api-matrix
219+
# steps:
220+
# - run: exit 1
221+
# if: >-
222+
# ${{
223+
# contains(needs.integration-tests-api-matrix.result, 'failure')
224+
# || contains(needs.integration-tests-api-matrix.result, 'cancelled')
225+
# || contains(needs.integration-tests-api-matrix.result, 'skipped')
226+
# }}
227+
# - run: exit 0
228+
# if: ${{ contains(needs.integration-tests-api-matrix.result, 'success') }}
229229

230230
unit-tests:
231231
if: ${{ always() }}
@@ -242,51 +242,6 @@ jobs:
242242
- run: exit 0
243243
if: ${{ contains(needs.unit-tests-matrix.result, 'success') }}
244244

245-
integration-tests-plugins:
246-
needs: setup
247-
runs-on: ubuntu-latest
248-
env:
249-
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
250-
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
251-
252-
services:
253-
postgres:
254-
image: postgres
255-
env:
256-
POSTGRES_PASSWORD: postgres
257-
POSTGRES_USER: postgres
258-
options: >-
259-
--health-cmd pg_isready
260-
--health-interval 1s
261-
--health-timeout 10s
262-
--health-retries 10
263-
ports:
264-
- 5432:5432
265-
266-
steps:
267-
- name: Checkout
268-
uses: actions/checkout@v3
269-
with:
270-
fetch-depth: 0
271-
272-
- name: Setup Node.js environment
273-
uses: actions/setup-node@v3
274-
with:
275-
node-version: "16.10.0"
276-
cache: "yarn"
277-
278-
- name: Install dependencies
279-
uses: ./.github/actions/cache-deps
280-
with:
281-
extension: pipeline
282-
283-
- name: Run plugin integration tests
284-
run: yarn test:integration:plugins
285-
env:
286-
DB_USERNAME: postgres
287-
DB_PASSWORD: postgres
288-
NODE_OPTIONS: "--max_old_space_size=4096"
289-
290245
integration-tests-modules-matrix:
291246
needs: setup
292247
name: Shard (${{ matrix.chunk }}) Module Integration Tests
@@ -346,41 +301,3 @@ jobs:
346301
}}
347302
- run: exit 0
348303
if: ${{ contains(needs.integration-tests-modules-matrix.result, 'success') }}
349-
350-
integration-tests-repositories:
351-
needs: setup
352-
runs-on: ubuntu-latest
353-
env:
354-
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
355-
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
356-
357-
services:
358-
postgres:
359-
image: postgres
360-
env:
361-
POSTGRES_PASSWORD: postgres
362-
POSTGRES_USER: postgres
363-
options: >-
364-
--health-cmd pg_isready
365-
--health-interval 1s
366-
--health-timeout 10s
367-
--health-retries 10
368-
ports:
369-
- 5432:5432
370-
371-
steps:
372-
- name: Checkout
373-
uses: actions/checkout@v3
374-
with:
375-
fetch-depth: 0
376-
377-
- name: Install dependencies
378-
uses: ./.github/actions/cache-deps
379-
with:
380-
extension: pipeline
381-
382-
- name: Run repository integration tests
383-
run: yarn test:integration:repositories
384-
env:
385-
DB_USERNAME: postgres
386-
DB_PASSWORD: postgres

0 commit comments

Comments
 (0)