Skip to content

Commit 5c246f1

Browse files
committed
ci: separate the lint tests from the tests
1 parent b3b3348 commit 5c246f1

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/CI.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ jobs:
5757
pnpm build
5858
pnpm build.docker_tests
5959
60+
- name: Lint
61+
run: |
62+
pnpm run test.lint
63+
6064
- name: Upload Dist
6165
uses: actions/upload-artifact@v3
6266
with:
@@ -186,7 +190,7 @@ jobs:
186190
# - name: Setup SSH debugging session
187191
# uses: mxschmitt/action-tmate@v3
188192

189-
- name: Test
193+
- name: Tests
190194
run: |
191195
pnpm run test
192196
@@ -242,7 +246,6 @@ jobs:
242246
run: |
243247
docker build -f ./dev/docker/__tests__/${{ matrix.container }} -t setup-cpp .
244248
245-
246249
Release:
247250
if: startsWith(github.ref, 'refs/tags/')
248251
needs: [Build, BuildExecutable, Test, Docker]

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,10 @@
5151
"start.docker.arch": "docker run -t setup-cpp:arch .",
5252
"start.docker.fedora": "docker run -t setup-cpp:fedora .",
5353
"start.docker.ubuntu": "docker run -t setup-cpp:ubuntu .",
54-
"test": "run-p --continue-on-error test.lint test.unit",
5554
"test.lint": "run-p --aggregate-output --continue-on-error lint.cspell test.lint.eslint test.lint.prettier lint.tsc",
5655
"test.lint.eslint": "eslint **/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/",
5756
"test.lint.prettier": "prettier . --check",
58-
"test.unit": "jest --runInBand",
57+
"test": "jest --runInBand",
5958
"build.docker_tests": "node ./dev/docker/__tests__/generate-docker-tests.mjs",
6059
"build.docker.arch": "pnpm build.docker_tests && docker build -f ./dev/docker/__tests__/arch.dockerfile -t setup-cpp:arch .",
6160
"build.docker.fedora": "pnpm build.docker_tests && docker build -f ./dev/docker/__tests__/fedora.dockerfile -t setup-cpp:fedora .",

0 commit comments

Comments
 (0)