Skip to content

Commit

Permalink
ci: Debug ci
Browse files Browse the repository at this point in the history
  • Loading branch information
klerick committed Feb 28, 2024
1 parent 2df59a3 commit 87ae6be
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 6 deletions.
42 changes: 42 additions & 0 deletions .eslintrc.base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nx"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
]
}
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nx/typescript"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nx/javascript"],
"rules": {}
},
{
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
"env": {
"jest": true
},
"rules": {}
}
]
}
4 changes: 2 additions & 2 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fetch-depth: 0
- name: Npm install
uses: ./.github/actions
- run: npx nx affected -t lint test build --parallel=3 --exclude='json-api-front,json-api-server,json-api-server-e2e,shared-utils,json-shared-type,database,@nestjs-json-api/source'
- run: npx nx affected -t lint test build --parallel=3 --exclude='json-api-front,json-api-server,json-api-server-e2e,shared-utils,json-shared-type,database,@nestjs-json-api/source' --base=origin/master~1 --head=origin/master
# - run: npm nx affected -t e2e-ci --parallel=1
# - run: npm nx affected -t deploy --no-agents

Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
run: |
git config user.name 'Alex H'
git config user.email '[email protected]'
npx nx release --skip-publish
npx nx release --skip-publish --dry-run
shell: bash
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Npm install
uses: ./.github/actions
# This line is needed for nx affected to work when CI is running on a PR
- run: git branch --track main origin/main
- run: git branch --track main origin/master
- run: npx nx affected -t lint test build --parallel=3 --exclude='json-api-front,json-api-server,json-api-server-e2e,shared-utils,json-shared-type,database'
# - run: npm nx affected -t e2e-ci --parallel=1
# - run: npm nx affected -t deploy --no-agents
2 changes: 1 addition & 1 deletion libs/json-api/json-api-nestjs-sdk/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": ["../../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"ignorePatterns": ["!**/*", "**/*.spec.ts"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
Expand Down
2 changes: 1 addition & 1 deletion libs/json-api/json-api-nestjs-sdk/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "libs/json-api/json-api-nestjs/jest.config.ts"
"jestConfig": "libs/json-api/json-api-nestjs-sdk/jest.config.ts"
}
}
},
Expand Down
7 changes: 7 additions & 0 deletions libs/shared-utils/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
"main": "libs/shared-utils/src/index.ts",
"assets": ["libs/shared-utils/*.md"]
}
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "libs/shared-utils/jest.config.ts"
}
}
},
"tags": []
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"version": "0.0.0",
"license": "MIT",
"scripts": {
"test": "nx test",
"typeorm": "ts-node -r tsconfig-paths/register --project libs/database/tsconfig.lib.json ./node_modules/typeorm/cli.js -d libs/database/src/lib/config-cli.ts",
"typeorm:run": "npm run typeorm migration:run",
"typeorm:revert": "npm run typeorm migration:revert",
Expand Down

0 comments on commit 87ae6be

Please sign in to comment.