@@ -46,31 +46,32 @@ jobs:
46
46
level : ' error'
47
47
reporter : ' github-check'
48
48
49
- javascript-quality :
50
- name : ' [LINT] Javascript quality'
51
- runs-on : ubuntu-latest
52
- steps :
53
- -
54
- name : ' [GITHUB / OFFICIAL] Checkout'
55
- uses : actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0
56
- with :
57
- fetch-depth : 0
58
- -
59
- name : ' [INTERNAL] Install project & environment'
60
- uses : ./.github/actions/install
61
- with :
62
- architecture : x64
63
- node_version : 18
64
- -
65
- name : ' [OSS / REVIEW DOG] Launch eslint'
66
- uses : reviewdog/action-eslint@d3395027ea2cfc5cf8f460b1ea939b6c86fea656 # v1.17.0
67
- with :
68
- eslint_flags : ' --color --no-inline-config .eslintrc.json ./{__tests__,src}/**/*.js'
69
- fail_on_error : true
70
- github_token : ${{ secrets.GITHUB_TOKEN }}
71
- level : ' error'
72
- reporter : ' github-check'
49
+ # javascript-quality:
50
+ # name: '[LINT] Javascript quality'
51
+ # runs-on: ubuntu-latest
52
+ # steps:
53
+ # -
54
+ # name: '[GITHUB / OFFICIAL] Checkout'
55
+ # uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0
56
+ # with:
57
+ # fetch-depth: 0
58
+ # -
59
+ # name: '[INTERNAL] Install project & environment'
60
+ # uses: ./.github/actions/install
61
+ # with:
62
+ # architecture: x64
63
+ # node_version: 18
64
+ # -
65
+ # name: '[OSS / REVIEW DOG] Launch eslint'
66
+ # uses: reviewdog/action-eslint@d3395027ea2cfc5cf8f460b1ea939b6c86fea656 # v1.17.0
67
+ # with:
68
+ # eslint_flags: '--color --no-inline-config .eslintrc.json ./{__tests__,src}/**/*.js'
69
+ # fail_on_error: true
70
+ # github_token: ${{ secrets.GITHUB_TOKEN }}
71
+ # level: 'error'
72
+ # reporter: 'github-check'
73
73
74
+ # @todo: should be launched by package
74
75
markdown-quality :
75
76
name : ' [LINT] Markdown quality'
76
77
runs-on : ubuntu-latest
87
88
fail_on_error : true
88
89
github_token : ${{ secrets.GITHUB_TOKEN }}
89
90
level : ' error'
90
- markdownlint_flags : ' . --config .markdownlint.json'
91
+ markdownlint_flags : ' . --config ./tools/lint/. markdownlint.json'
91
92
reporter : ' github-check'
92
93
94
+ # @todo: should be launched by package
93
95
code-quality :
94
96
name : ' [LINT] Code quality'
95
97
runs-on : ubuntu-latest
@@ -106,12 +108,14 @@ jobs:
106
108
DEFAULT_BRANCH : ' main'
107
109
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
108
110
VALIDATE_ALL_CODEBASE : false
109
- VALIDATE_CSS : true
111
+ # VALIDATE_CSS: true
110
112
VALIDATE_ENV : true
111
113
VALIDATE_GITLEAKS : true
112
114
115
+ # @todo: should be launched by package
113
116
tests-with-jest :
114
- needs : [commit-quality, github-action-quality, javascript-quality, markdown-quality, code-quality]
117
+ needs : [commit-quality, github-action-quality, markdown-quality, code-quality]
118
+ # needs: [commit-quality, github-action-quality, javascript-quality, markdown-quality, code-quality]
115
119
strategy :
116
120
matrix :
117
121
ARCHITECTURE : [x64]
@@ -132,14 +136,16 @@ jobs:
132
136
-
133
137
name : ' Launch build'
134
138
shell : sh
135
- run : pnpm run build
139
+ run : pnpm run --filter="@dragula2/core" build
136
140
-
137
141
name : ' Launch test'
138
142
shell : sh
139
- run : pnpm run test:ci
143
+ run : pnpm run --filter="@dragula2/core" test:ci
140
144
145
+ # @todo: should be launched by package
141
146
tests-with-tape :
142
- needs : [commit-quality, github-action-quality, javascript-quality, markdown-quality, code-quality]
147
+ needs : [commit-quality, github-action-quality, markdown-quality, code-quality]
148
+ # needs: [commit-quality, github-action-quality, javascript-quality, markdown-quality, code-quality]
143
149
strategy :
144
150
matrix :
145
151
ARCHITECTURE : [x64]
@@ -164,17 +170,17 @@ jobs:
164
170
-
165
171
name : ' Launch build'
166
172
shell : sh
167
- run : pnpm run build
173
+ run : pnpm run --filter="@dragula2/core" build
168
174
-
169
175
name : ' [For UbuntuOS] Launch test'
170
176
if : matrix.OS == 'ubuntu-latest'
171
177
shell : sh
172
- run : xvfb-run --auto-servernum pnpm run test:old
178
+ run : xvfb-run --auto-servernum pnpm run --filter="@dragula2/core" test:old
173
179
-
174
180
name : ' Launch test'
175
181
if : matrix.OS != 'ubuntu-latest'
176
182
shell : sh
177
- run : pnpm run test:old
183
+ run : pnpm run --filter="@dragula2/core" test:old
178
184
179
185
tests-end :
180
186
needs : [tests-with-jest, tests-with-tape]
0 commit comments