Skip to content

Commit

Permalink
ci: setup nx cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-sa committed Nov 11, 2023
1 parent 1995b1a commit a482507
Show file tree
Hide file tree
Showing 8 changed files with 101 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

env:
NX_CLOUD_ENCRYPTION_KEY: ${{ secrets.NX_CLOUD_ENCRYPTION_KEY }}
NX_CLOUD_AUTH_TOKEN: ${{ secrets.NX_CLOUD_AUTH_TOKEN }}
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
NX_VERBOSE_LOGGING: ${{ secrets.NX_VERBOSE_LOGGING }}
NX_SKIP_NX_CACHE: ${{ secrets.NX_SKIP_NX_CACHE }}
NX_TASKS_RUNNER: ${{ secrets.NX_TASKS_RUNNER }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:
NX_TASKS_RUNNER: ${{ secrets.NX_TASKS_RUNNER }}
NX_PERF_LOGGING: ${{ secrets.NX_PERF_LOGGING }}
NX_CLOUD_ENCRYPTION_KEY: ${{ secrets.NX_CLOUD_ENCRYPTION_KEY }}
NX_CLOUD_AUTH_TOKEN: ${{ secrets.NX_CLOUD_AUTH_TOKEN }}
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}

permissions:
actions: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

env:
NX_CLOUD_ENCRYPTION_KEY: ${{ secrets.NX_CLOUD_ENCRYPTION_KEY }}
NX_CLOUD_AUTH_TOKEN: ${{ secrets.NX_CLOUD_AUTH_TOKEN }}
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
NX_VERBOSE_LOGGING: ${{ secrets.NX_VERBOSE_LOGGING }}
NX_SKIP_NX_CACHE: ${{ secrets.NX_SKIP_NX_CACHE }}
NX_TASKS_RUNNER: ${{ secrets.NX_TASKS_RUNNER }}
Expand Down
45 changes: 39 additions & 6 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,55 @@
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": ["build", "lint", "test", "e2e"]
"cacheableOperations": [
"build",
"lint",
"test",
"e2e",
"release"
]
}
},
"cloud": {
"runner": "nx-cloud",
"options": {
"cacheableOperations": [
"build",
"lint",
"test",
"e2e",
"release"
]
}
}
},
"targetDefaults": {
"release": {
"dependsOn": ["^build", "build"],
"dependsOn": [
"^build",
"build"
],
"inputs": [
"production",
"^production",
"{projectRoot}/.release-it.json"
]
},
"build": {
"dependsOn": ["^build"],
"inputs": ["production", "^production"]
"dependsOn": [
"^build"
],
"inputs": [
"production",
"^production"
]
},
"test": {
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"]
"inputs": [
"default",
"^production",
"{workspaceRoot}/jest.preset.js"
]
},
"lint": {
"inputs": [
Expand All @@ -33,7 +63,10 @@
}
},
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"default": [
"{projectRoot}/**/*",
"sharedGlobals"
],
"production": [
"default",
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"node-gyp-build": "^4.6.1",
"npm-local-development": "^0.4.0",
"nx": "16.7.4",
"nx-cloud": "^16.5.2",
"prettier": "^2.6.2",
"release-it": "^16.1.5",
"ts-jest": "^29.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/apollo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"typings": "./src/index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/marcus-sa/deepkit-community.git"
"url": "https://github.com/marcus-sa/deepkit-graphql.git"
},
"dependencies": {
"tslib": "2.6.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"typings": "./src/index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/marcus-sa/deepkit-community.git"
"url": "https://github.com/marcus-sa/deepkit-graphql.git"
},
"dependencies": {
"graphql-scalars": "1.22.2",
Expand Down
56 changes: 56 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a482507

Please sign in to comment.