commit
cc7ace8cfc
@ -0,0 +1,28 @@ |
|||||||
|
name: CI - Build & Test |
||||||
|
|
||||||
|
on: |
||||||
|
pull_request: |
||||||
|
branches: [main] |
||||||
|
|
||||||
|
jobs: |
||||||
|
build-and-test: |
||||||
|
runs-on: ubuntu-latest |
||||||
|
|
||||||
|
steps: |
||||||
|
- name: Checkout repository |
||||||
|
uses: actions/checkout@v4 |
||||||
|
|
||||||
|
- name: Set up Node.js |
||||||
|
uses: actions/setup-node@v4 |
||||||
|
with: |
||||||
|
node-version: '22' |
||||||
|
cache: 'npm' |
||||||
|
|
||||||
|
- name: Install dependencies using npm workspaces |
||||||
|
run: npm install |
||||||
|
|
||||||
|
- name: Build all packages in topological order |
||||||
|
run: npm run build |
||||||
|
|
||||||
|
- name: Run tests |
||||||
|
run: npm test |
@ -1,28 +0,0 @@ |
|||||||
{ |
|
||||||
"tasksRunnerOptions": { |
|
||||||
"default": { |
|
||||||
"runner": "nx/tasks-runners/default", |
|
||||||
"options": { |
|
||||||
"cacheableOperations": [ |
|
||||||
"build", |
|
||||||
"test" |
|
||||||
] |
|
||||||
} |
|
||||||
} |
|
||||||
}, |
|
||||||
"targetDefaults": { |
|
||||||
"build": { |
|
||||||
"dependsOn": [ |
|
||||||
"^build" |
|
||||||
], |
|
||||||
"outputs": [ |
|
||||||
"{projectRoot}/dist" |
|
||||||
] |
|
||||||
}, |
|
||||||
"test": { |
|
||||||
"outputs": [ |
|
||||||
"{projectRoot}/coverage" |
|
||||||
] |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue