Skip to content

Commit

Permalink
chore: passwithnotests
Browse files Browse the repository at this point in the history
  • Loading branch information
ToxicToast committed May 10, 2024
1 parent 6085218 commit 143de4c
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
run: npm run nx affected:lint --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }} --parallel --maxParallel=3

- name: 🚀 Test Apps
run: npm run nx affected:test --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }} --parallel --maxParallel=3
run: npm run nx affected:test --passWithNoTests --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }} --parallel --maxParallel=3

- name: 🚀 e2e Apps
run: npm run nx affected:e2e --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }} --parallel --maxParallel=3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/versioning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
run: npm run nx affected:lint --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }} --parallel --maxParallel=3

- name: 🚀 Test Apps
run: npm run nx affected:test --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }} --parallel --maxParallel=3
run: npm run nx affected:test --passWithNoTests --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }} --parallel --maxParallel=3

- name: 🚀 e2e Apps
run: npm run nx affected:e2e --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }} --parallel --maxParallel=3
Expand Down
7 changes: 7 additions & 0 deletions apps/apialerts-service/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@
"buildTarget": "apialerts-service:build"
}
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "apps/apialerts-service/jest.config.ts"
}
},
"docker-build": {
"dependsOn": ["build"],
"command": "docker build -f apps/apialerts-service/Dockerfile . -t azkaban2015/webhooks:{args.VERSION}"
Expand Down
7 changes: 7 additions & 0 deletions apps/azkaban-gateway/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@
"buildTarget": "azkaban-gateway:build"
}
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "apps/azkaban-gateway/jest.config.ts"
}
},
"docker-build": {
"dependsOn": ["build"],
"command": "docker build -f apps/azkaban-gateway/Dockerfile . -t azkaban2015/gateway:{args.VERSION}"
Expand Down
7 changes: 7 additions & 0 deletions apps/azkaban-webhooks/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@
"buildTarget": "azkaban-webhooks:build"
}
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "apps/azkaban-webhooks/jest.config.ts"
}
},
"docker-build": {
"dependsOn": ["build"],
"command": "docker build -f apps/azkaban-webhooks/Dockerfile . -t azkaban2015/webhooks:{args.VERSION}"
Expand Down
45 changes: 44 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,47 @@
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"targetDefaults": {
"build": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["production", "^production"]
},
"lint": {
"cache": true,
"inputs": [
"default",
"{workspaceRoot}/.eslintrc.json",
"{workspaceRoot}/.eslintignore",
"{workspaceRoot}/eslint.config.js"
]
},
"e2e": {
"cache": true,
"inputs": ["default", "^production"]
},
"@nx/jest:jest": {
"cache": true,
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
"options": {
"passWithNoTests": true
},
"configurations": {
"ci": {
"ci": true,
"codeCoverage": true
}
}
},
"@nx/vite:test": {
"cache": true,
"inputs": ["default", "^production"]
},
"@nx/webpack:webpack": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["production", "^production"]
}
},
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"production": [
Expand Down Expand Up @@ -66,5 +108,6 @@
},
"exclude": []
}
]
],
"nxCloudAccessToken": "MjMwNjZiZGEtOGNlNS00ZWM4LTkzN2YtNmE3ZmMyMTc2MTY2fHJlYWQtd3JpdGU="
}

0 comments on commit 143de4c

Please sign in to comment.