chore: V2 core loader + modules integration-tests (#6544)

This commit is contained in:
Oli Juhl authored and GitHub committed 2024-02-29 16:46:30 +01:00
1 parent dc025302a1
commit 296d7faad4
100 files changed
+318 -78

No files matched your search

+1
View File
@@ -10,6 +10,7 @@
"ignore": [ "ignore": [
"integration-tests-api", "integration-tests-api",
"integration-tests-plugins", "integration-tests-plugins",
"integration-tests-modules",
"integration-tests-repositories", "integration-tests-repositories",
"@medusajs/dashboard", "@medusajs/dashboard",
"@medusajs/admin-shared", "@medusajs/admin-shared",
+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/medusa": minor
---
chore: V2 core loader + modules integration-tests
+53
View File
@@ -241,6 +241,59 @@ jobs:
DB_PASSWORD: postgres DB_PASSWORD: postgres
NODE_OPTIONS: "--max_old_space_size=4096" NODE_OPTIONS: "--max_old_space_size=4096"
integration-tests-modules:
needs: setup
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
options: >-
--health-cmd pg_isready
--health-interval 1s
--health-timeout 10s
--health-retries 10
ports:
- 5432:5432
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: "16.10.0"
cache: "yarn"
- name: Install dependencies
uses: ./.github/actions/cache-deps
with:
extension: pipeline
- name: Build Packages
run: yarn build
- name: Run Modules integration tests
run: yarn test:integration:modules
env:
DB_USERNAME: postgres
DB_PASSWORD: postgres
NODE_OPTIONS: "--max_old_space_size=4096"
integration-tests-repositories: integration-tests-repositories:
needs: setup needs: setup
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -1,4 +1,5 @@
import { Cart } from "@medusajs/medusa" import { Cart } from "@medusajs/medusa"
import { generateEntityId } from "@medusajs/utils"
import faker from "faker" import faker from "faker"
import { DataSource } from "typeorm" import { DataSource } from "typeorm"
import { import {
@@ -19,7 +20,6 @@ import {
ShippingMethodFactoryData, ShippingMethodFactoryData,
simpleShippingMethodFactory, simpleShippingMethodFactory,
} from "./simple-shipping-method-factory" } from "./simple-shipping-method-factory"
import { generateEntityId } from "@medusajs/utils"
export type CartFactoryData = { export type CartFactoryData = {
id?: string id?: string
+13
View File
@@ -0,0 +1,13 @@
let ignore = [`**/dist`]
// Jest needs to compile this code, but generally we don't want this copied
// to output folders
if (process.env.NODE_ENV !== `test`) {
ignore.push(`**/__tests__`)
}
module.exports = {
sourceMaps: true,
presets: ["babel-preset-medusa-package"],
ignore,
}
+4
View File
@@ -0,0 +1,4 @@
dist/
node_modules
*yarn-error.log
File renamed without changes.
Internal Server Error - Gitea: Git with a cup of tea
500 Internal Server Error

An error occurred:

An error occurred

Gitea Version: 28.1.0