Skip to content

Commit ae20099

Browse files
createhb21ahHachul
andauthored
chore: Adjusting CI (#317)
* chore: adjust ci (#ci-adjust) * chore: remove comment (#ci-adjust) * chore: ci working test (#ci-adjust) * chore: ci working test 2 (#ci-adjust) * feat(nx-cloud): setup nx cloud workspace (#318) This commit sets up Nx Cloud for your Nx workspace, enabling distributed caching and the Nx Cloud GitHub integration for fast CI and improved developer experience. You can access your Nx Cloud workspace by going to https://cloud.nx.app/orgs/67a199185e4612c72a76ed4c/workspaces/67a199375e4612c72a76ed4f **Note:** This commit attempts to maintain formatting of the nx.json file, however you may need to correct formatting by running an nx format command and committing the changes. * chore: ci working test 3 (#ci-adjust) * chore: ci working test 4 (#ci-adjust) * chore: ci affected test (#ci-adjust) * chore: ci affected test 2 (#ci-adjust) * chore: using nx ci token (#ci-adjust) * chore: test affected (#ci-adjust) * chore: test affected (#ci-adjust) * chore: test affected (#ci-adjust) * chore: test affected (#ci-adjust) * chore: test affected (#ci-adjust) --------- Co-authored-by: ahHachul <[email protected]>
1 parent c884ebf commit ae20099

File tree

13 files changed

+53
-5061
lines changed

13 files changed

+53
-5061
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ env:
2020
DEFAULT_NODE_VERSION: '20.13.0'
2121
HUSKY: '0'
2222
NEXT_TELEMETRY_DISABLED: '1'
23+
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
2324

2425
jobs:
2526
main:
2627
name: 🚀 CI Pipeline
2728
runs-on: ubuntu-latest
2829
timeout-minutes: 15
30+
2931
steps:
3032
- name: 📥 Checkout Repository
3133
uses: actions/checkout@v4
@@ -51,14 +53,6 @@ jobs:
5153
echo '${{ secrets.DEV_REACT_APP_CONFIG }}' > config.json
5254
echo '${{ secrets.DEV_ONE_APP_CONFIG }}' | jq -r 'to_entries | .[] | "\(.key)=\(.value)"' > services/one-app/.env
5355
54-
- name: 🔍 Run Type Check
55-
run: pnpm nx-cloud record -- nx affected -t type-check
56-
57-
- name: 📦 Run Build
58-
run: pnpm nx-cloud record -- nx affected -t build
59-
60-
- name: 🧪 Run Tests
61-
run: pnpm nx-cloud record -- nx-cloud record -- nx affected -t test
62-
63-
- name: 💅 Run Lint
64-
run: pnpm nx-cloud record -- nx-cloud record -- nx affected -t lint
56+
- name: 🏃 Run CI Tasks
57+
run: |
58+
pnpm nx affected --parallel=3 -t type-check,build,test,lint

nx.json

Lines changed: 41 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,64 @@
11
{
22
"extends": "nx/presets/npm.json",
3-
"workspaceLayout": {
4-
"appsDir": "services",
5-
"libsDir": "packages"
6-
},
3+
"workspaceLayout": { "appsDir": "services", "libsDir": "packages" },
74
"targetDefaults": {
85
"type-check": {
96
"cache": true,
10-
"inputs": ["{projectRoot}/**/*.{ts,tsx}", "{projectRoot}/tsconfig.json"]
7+
"inputs": [
8+
"{projectRoot}/**/*.{ts,tsx}",
9+
"{projectRoot}/tsconfig.json",
10+
"{workspaceRoot}/tsconfig.base.json"
11+
]
1112
},
1213
"lint": {
1314
"cache": true,
14-
"inputs": ["{projectRoot}/**/*.{js,ts,tsx}"]
15+
"inputs": [
16+
"{projectRoot}/**/*.{js,ts,tsx}",
17+
"{projectRoot}/.eslintrc.*",
18+
"{workspaceRoot}/.eslintrc.*"
19+
]
1520
},
1621
"build": {
1722
"cache": true,
1823
"dependsOn": ["^build"],
19-
"outputs": ["{projectRoot}/dist/**"]
24+
"inputs": ["production", "{workspaceRoot}/package.json"],
25+
"outputs": ["{projectRoot}/dist/**", "{projectRoot}/.next/**"]
2026
},
2127
"test": {
2228
"cache": true,
23-
"inputs": ["{projectRoot}/src/**/*.{js,ts,tsx}", "{projectRoot}/test/**/*.{js,ts,tsx}"]
24-
},
25-
"start": {
26-
"cache": false,
27-
"persistent": true,
28-
"dependsOn": ["^build"]
29+
"inputs": [
30+
"{projectRoot}/src/**/*.{js,ts,tsx}",
31+
"{projectRoot}/test/**/*.{js,ts,tsx}",
32+
"{projectRoot}/jest.config.*",
33+
"{workspaceRoot}/jest.config.*"
34+
]
2935
},
36+
"start": { "cache": false, "persistent": true, "dependsOn": ["^build"] },
3037
"lint:fix": {
31-
"cache": true
38+
"cache": true,
39+
"inputs": [
40+
"{projectRoot}/**/*.{js,ts,tsx}",
41+
"{projectRoot}/.eslintrc.*",
42+
"{workspaceRoot}/.eslintrc.*"
43+
]
3244
}
3345
},
3446
"defaultBase": "main",
3547
"namedInputs": {
36-
"default": ["{projectRoot}/**/*", "!{projectRoot}/**/*.md"],
37-
"production": ["default", "!{projectRoot}/**/*.spec.ts"]
38-
},
39-
"implicitDependencies": {
40-
"**/.env.*local": "*"
48+
"default": [
49+
"{projectRoot}/**/*",
50+
"!{projectRoot}/**/*.md",
51+
"!{projectRoot}/**/CHANGELOG.md",
52+
"!{projectRoot}/**/*.spec.ts",
53+
"!{projectRoot}/coverage/**"
54+
],
55+
"production": [
56+
"default",
57+
"!{projectRoot}/**/*.spec.ts",
58+
"!{projectRoot}/test/**/*",
59+
"!{projectRoot}/**/__tests__/**/*"
60+
]
4161
},
42-
"nxCloudId": "679e791071fd2cb4bf200e60"
62+
"parallel": 3,
63+
"nxCloudId": "67a199375e4612c72a76ed4f"
4364
}

services/ahhachul.com/playwright-report/index.html

Lines changed: 0 additions & 71 deletions
This file was deleted.

services/ahhachul.com/src/components/domain/lostFound/postDetail/template/LostFoundDetail.component.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ interface LostFoundDetailProps {
1818
const LostFoundDetail = ({ id }: LostFoundDetailProps) => {
1919
const { data: post } = useFetchLostFoundDetail(id);
2020

21+
console.log('post', post);
22+
2123
const images = post.isFromLost112
2224
? [
2325
{

services/ahhachul.com/src/mocks/handlers/example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const handlers = [
66
http.get('https://example.com/user', () => {
77
// ...and respond to them using this JSON response.
88
return HttpResponse.json({
9-
id: 'c7b3d8e0-5e0b-4b0f-8b3a-3b9f4b3d3b3d',
9+
id: 'c7b3d8e0-5e0b-4b0f-8b3a-qwer1234xx',
1010
firstName: 'John',
1111
lastName: 'Maverick',
1212
});
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const EditCommentPage = () => {
2-
return <div>edit</div>;
2+
return <div>Hi</div>;
33
};
44

55
export default EditCommentPage;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const NewCommentReplyPage = () => {
2-
return <div>edit</div>;
2+
return <div>Hi</div>;
33
};
44

55
export default NewCommentReplyPage;

0 commit comments

Comments
 (0)