mirror of
https://github.com/strapi/strapi.git
synced 2025-09-13 18:47:15 +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') }}
|
||||
|
||||
- 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
|
||||
run: yarn run -s lint
|
||||
|
||||
@ -55,6 +57,8 @@ jobs:
|
||||
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
|
||||
|
||||
- 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
|
||||
run: yarn run -s test:unit --coverage
|
||||
- name: Upload coverage to Codecov
|
||||
@ -231,6 +235,7 @@ jobs:
|
||||
SQLITE_PKG: ${{ matrix.sqlite_pkg }}
|
||||
with:
|
||||
dbOptions: '--dbclient=sqlite-legacy --dbfile=./tmp/data.db'
|
||||
|
||||
# EE
|
||||
api_ee_pg:
|
||||
runs-on: ubuntu-latest
|
||||
@ -275,6 +280,7 @@ jobs:
|
||||
with:
|
||||
dbOptions: '--dbclient=postgres --dbhost=localhost --dbport=5432 --dbname=strapi_test --dbusername=strapi --dbpassword=strapi'
|
||||
runEE: true
|
||||
|
||||
api_ee_mysql:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [lint, unit_back, unit_front]
|
||||
|
@ -33,6 +33,7 @@
|
||||
"clean": "lerna run --stream clean --no-private",
|
||||
"watch": "lerna run --stream watch --no-private --parallel",
|
||||
"build": "lerna run --stream build --no-private",
|
||||
"build:ts": "lerna run --stream build:ts --no-private",
|
||||
"generate": "plop --plopfile ./packages/generators/admin/plopfile.js",
|
||||
"lint": "npm-run-all -p lint:code lint:css",
|
||||
"lint:code": "eslint .",
|
||||
|
@ -27,11 +27,13 @@
|
||||
"main": "./lib/index.js",
|
||||
"types": "./lib/index.d.ts",
|
||||
"scripts": {
|
||||
"build": "tsc -p tsconfig.json",
|
||||
"clean": "rimraf ./lib",
|
||||
"build": "yarn build:ts",
|
||||
"build:ts": "tsc -p tsconfig.json",
|
||||
"build:clean": "yarn clean && yarn build",
|
||||
"watch": "yarn build -w --preserveWatchOutput",
|
||||
"test:unit": "jest --verbose"
|
||||
"clean": "rimraf ./dist",
|
||||
"prepublishOnly": "yarn build:clean",
|
||||
"test:unit": "jest --verbose",
|
||||
"watch": "yarn build:ts -w --preserveWatchOutput"
|
||||
},
|
||||
"directories": {
|
||||
"lib": "./lib"
|
||||
|
Loading…
x
Reference in New Issue
Block a user