Skip to content

Commit

Permalink
test: clean tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Jul 21, 2023
1 parent 25ed9a0 commit 37fb20d
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: Install
run: yarn install
- name: Build
run: yarn run build
- name: Test
run: yarn test

Expand All @@ -38,8 +36,6 @@ jobs:
node-version: 18
- name: Install
run: yarn install
- name: Build
run: yarn run build
- name: Test
run: yarn run test:chrome

Expand All @@ -56,8 +52,6 @@ jobs:
node-version: 18
- name: Install
run: yarn install
- name: Build
run: yarn run build
- name: Test
run: yarn run test:firefox

Expand All @@ -74,7 +68,5 @@ jobs:
node-version: 18
- name: Install
run: yarn install
- name: Build
run: yarn run build
- name: Test
run: yarn run test:webkit
58 changes: 58 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": [
"build",
"test",
"test:browser",
"test:chrome",
"test:firefox",
"test:webkit"
]
}
}
},
"targetDefaults": {
"build": {
"dependsOn": [
"^build"
],
"outputs": [
"{projectRoot}/lib",
"{projectRoot}/module"
]
},
"test": {
"dependsOn": [
"build",
"^test"
]
},
"test:browser": {
"dependsOn": [
"build",
"^test:browser"
]
},
"test:chrome": {
"dependsOn": [
"build",
"^test:chrome"
]
},
"test:firefox": {
"dependsOn": [
"build",
"^test:firefox"
]
},
"test:webkit": {
"dependsOn": [
"build",
"^test:webkit"
]
}
}
}

0 comments on commit 37fb20d

Please sign in to comment.