Skip to content

Commit 04c114c

Browse files
authored
Merge pull request #627 from qwikifiers/pr-tests-on-ci
turned on tests on ci for all packages
2 parents 7200c3a + 8333623 commit 04c114c

File tree

7 files changed

+15
-45
lines changed

7 files changed

+15
-45
lines changed

.github/actions/test/action.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,21 @@ runs:
2020

2121
- name: Lint
2222
shell: bash
23-
run: npx nx affected:lint --base=last-release --exclude=website
23+
run: npx nx run-many -t lint --exclude website # --base=last-release <- add that back after fix
2424

25-
- name: Build Headless Kit
25+
- name: Build packages
2626
shell: bash
27-
run: npx nx build headless
27+
run: npx nx run-many -t build --exclude website # --base=last-release <- add that back
2828

2929
# - name: Build storybook
3030
# shell: bash
3131
# run: npx nx build-storybook headless
3232

33-
- name: Run Cypress component tests
33+
- name: Test all except headless
34+
shell: bash
35+
run: npx nx run-many -t test # --base=last-release <- add that back
36+
37+
- name: Test Headless
3438
uses: cypress-io/github-action@v5
3539
with:
3640
command: 'pnpm test.headless.ci'
@@ -48,10 +52,6 @@ runs:
4852
# shell: bash
4953
# run: npx nx affected:build --base=last-release --exclude=website
5054

51-
# - name: Test
52-
# shell: bash
53-
# run: npx nx affected --target=test --base=last-release
54-
5555
# - name: E2E Tests
5656
# shell: bash
5757
# run: npx nx affected --target=e2e --base=last-release

apps/website/project.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,6 @@
2121
"buildTarget": "website:build"
2222
}
2323
},
24-
"test": {
25-
"executor": "@nx/vite:test",
26-
"outputs": ["coverage/apps/website"],
27-
"options": {
28-
"passWithNoTests": true,
29-
"reportsDirectory": "../../coverage/apps/website"
30-
}
31-
},
3224
"serve": {
3325
"executor": "@nx/vite:dev-server",
3426
"options": {

packages/cli/project.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"targets": {
77
"build-bin": {
88
"executor": "@nx/js:tsc",
9-
109
"outputs": ["{options.outputPath}"],
1110
"options": {
1211
"rootDir": ".",

packages/kit-headless/project.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,6 @@
1818
"production": {}
1919
}
2020
},
21-
"test": {
22-
"executor": "@nx/vite:test",
23-
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
24-
"options": {
25-
"passWithNoTests": true
26-
}
27-
},
2821
"lint": {
2922
"executor": "@nx/eslint:lint",
3023
"outputs": ["{options.outputFile}"],

packages/kit-styled/components-registry.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@
4949
"componentFolder": "combobox",
5050
"files": ["combobox.tsx"]
5151
},
52+
{
53+
"displayName": "Input",
54+
"type": "input",
55+
"componentFolder": "input",
56+
"files": ["input.tsx"]
57+
},
5258
{
5359
"displayName": "Label",
5460
"type": "label",

packages/kit-styled/package.json

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,7 @@
1313
"node": ">=16.0.0"
1414
},
1515
"private": false,
16-
"scripts": {
17-
"build": "qwik build",
18-
"build-storybook": "storybook build",
19-
"build.lib": "vite build --mode lib",
20-
"build.types": "tsc --emitDeclarationOnly",
21-
"dev": "vite --mode ssr",
22-
"dev.debug": "node --inspect-brk ./node_modules/vite/bin/vite.js --mode ssr --force",
23-
"fmt": "prettier --write .",
24-
"fmt.check": "prettier --check .",
25-
"release": "np",
26-
"start": "vite --open --mode ssr",
27-
"storybook": "storybook dev -p 6006",
28-
"qwik": "qwik"
29-
},
16+
"scripts": {},
3017
"peerDependencies": {
3118
"@builder.io/qwik": "^1.1.0"
3219
},

packages/kit-styled/project.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,6 @@
5050
"production": {}
5151
}
5252
},
53-
"test": {
54-
"executor": "@nx/vite:test",
55-
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
56-
"options": {
57-
"passWithNoTests": true
58-
}
59-
},
6053
"lint": {
6154
"executor": "@nx/eslint:lint",
6255
"outputs": ["{options.outputFile}"],

0 commit comments

Comments
 (0)