mirror of
https://github.com/strapi/strapi.git
synced 2025-09-14 19:19:43 +00:00
Merge branch 'deits/transfer-push-tests' into deits/architecture-rework
This commit is contained in:
commit
42a6497e42
6
.github/workflows/tests.yml
vendored
6
.github/workflows/tests.yml
vendored
@ -34,6 +34,8 @@ jobs:
|
|||||||
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
|
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
|
||||||
|
|
||||||
- run: yarn install --frozen-lockfile
|
- run: yarn install --frozen-lockfile
|
||||||
|
- name: Build TypeScript packages # for lint we need to build ts, for rules checking if paths exist
|
||||||
|
run: yarn build:ts
|
||||||
- name: Run lint
|
- name: Run lint
|
||||||
run: yarn run -s lint
|
run: yarn run -s lint
|
||||||
|
|
||||||
@ -55,6 +57,8 @@ jobs:
|
|||||||
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
|
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
|
||||||
|
|
||||||
- run: yarn install --frozen-lockfile
|
- run: yarn install --frozen-lockfile
|
||||||
|
- name: Build TypeScript packages # for unit tests we need to build ts, for finding and mocking ts packages
|
||||||
|
run: yarn build:ts
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: yarn run -s test:unit --coverage
|
run: yarn run -s test:unit --coverage
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
@ -231,6 +235,7 @@ jobs:
|
|||||||
SQLITE_PKG: ${{ matrix.sqlite_pkg }}
|
SQLITE_PKG: ${{ matrix.sqlite_pkg }}
|
||||||
with:
|
with:
|
||||||
dbOptions: '--dbclient=sqlite-legacy --dbfile=./tmp/data.db'
|
dbOptions: '--dbclient=sqlite-legacy --dbfile=./tmp/data.db'
|
||||||
|
|
||||||
# EE
|
# EE
|
||||||
api_ee_pg:
|
api_ee_pg:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -275,6 +280,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
dbOptions: '--dbclient=postgres --dbhost=localhost --dbport=5432 --dbname=strapi_test --dbusername=strapi --dbpassword=strapi'
|
dbOptions: '--dbclient=postgres --dbhost=localhost --dbport=5432 --dbname=strapi_test --dbusername=strapi --dbpassword=strapi'
|
||||||
runEE: true
|
runEE: true
|
||||||
|
|
||||||
api_ee_mysql:
|
api_ee_mysql:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [lint, unit_back, unit_front]
|
needs: [lint, unit_back, unit_front]
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
"clean": "lerna run --stream clean --no-private",
|
"clean": "lerna run --stream clean --no-private",
|
||||||
"watch": "lerna run --stream watch --no-private --parallel",
|
"watch": "lerna run --stream watch --no-private --parallel",
|
||||||
"build": "lerna run --stream build --no-private",
|
"build": "lerna run --stream build --no-private",
|
||||||
|
"build:ts": "lerna run --stream build:ts --no-private",
|
||||||
"generate": "plop --plopfile ./packages/generators/admin/plopfile.js",
|
"generate": "plop --plopfile ./packages/generators/admin/plopfile.js",
|
||||||
"lint": "npm-run-all -p lint:code lint:css",
|
"lint": "npm-run-all -p lint:code lint:css",
|
||||||
"lint:code": "eslint .",
|
"lint:code": "eslint .",
|
||||||
|
@ -27,11 +27,13 @@
|
|||||||
"main": "./lib/index.js",
|
"main": "./lib/index.js",
|
||||||
"types": "./lib/index.d.ts",
|
"types": "./lib/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc -p tsconfig.json",
|
"build": "yarn build:ts",
|
||||||
"clean": "rimraf ./lib",
|
"build:ts": "tsc -p tsconfig.json",
|
||||||
"build:clean": "yarn clean && yarn build",
|
"build:clean": "yarn clean && yarn build",
|
||||||
"watch": "yarn build -w --preserveWatchOutput",
|
"clean": "rimraf ./dist",
|
||||||
"test:unit": "jest --verbose"
|
"prepublishOnly": "yarn build:clean",
|
||||||
|
"test:unit": "jest --verbose",
|
||||||
|
"watch": "yarn build:ts -w --preserveWatchOutput"
|
||||||
},
|
},
|
||||||
"directories": {
|
"directories": {
|
||||||
"lib": "./lib"
|
"lib": "./lib"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user