mirror of https://github.com/aminya/setup-cpp
ci: separate the lint tests from the tests
This commit is contained in:
parent
b3b3348bbf
commit
5c246f1986
|
@ -57,6 +57,10 @@ jobs:
|
||||||
pnpm build
|
pnpm build
|
||||||
pnpm build.docker_tests
|
pnpm build.docker_tests
|
||||||
|
|
||||||
|
- name: Lint
|
||||||
|
run: |
|
||||||
|
pnpm run test.lint
|
||||||
|
|
||||||
- name: Upload Dist
|
- name: Upload Dist
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
@ -186,7 +190,7 @@ jobs:
|
||||||
# - name: Setup SSH debugging session
|
# - name: Setup SSH debugging session
|
||||||
# uses: mxschmitt/action-tmate@v3
|
# uses: mxschmitt/action-tmate@v3
|
||||||
|
|
||||||
- name: Test
|
- name: Tests
|
||||||
run: |
|
run: |
|
||||||
pnpm run test
|
pnpm run test
|
||||||
|
|
||||||
|
@ -242,7 +246,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
docker build -f ./dev/docker/__tests__/${{ matrix.container }} -t setup-cpp .
|
docker build -f ./dev/docker/__tests__/${{ matrix.container }} -t setup-cpp .
|
||||||
|
|
||||||
|
|
||||||
Release:
|
Release:
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
needs: [Build, BuildExecutable, Test, Docker]
|
needs: [Build, BuildExecutable, Test, Docker]
|
||||||
|
|
|
@ -51,11 +51,10 @@
|
||||||
"start.docker.arch": "docker run -t setup-cpp:arch .",
|
"start.docker.arch": "docker run -t setup-cpp:arch .",
|
||||||
"start.docker.fedora": "docker run -t setup-cpp:fedora .",
|
"start.docker.fedora": "docker run -t setup-cpp:fedora .",
|
||||||
"start.docker.ubuntu": "docker run -t setup-cpp:ubuntu .",
|
"start.docker.ubuntu": "docker run -t setup-cpp:ubuntu .",
|
||||||
"test": "run-p --continue-on-error test.lint test.unit",
|
|
||||||
"test.lint": "run-p --aggregate-output --continue-on-error lint.cspell test.lint.eslint test.lint.prettier lint.tsc",
|
"test.lint": "run-p --aggregate-output --continue-on-error lint.cspell test.lint.eslint test.lint.prettier lint.tsc",
|
||||||
"test.lint.eslint": "eslint **/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/",
|
"test.lint.eslint": "eslint **/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/",
|
||||||
"test.lint.prettier": "prettier . --check",
|
"test.lint.prettier": "prettier . --check",
|
||||||
"test.unit": "jest --runInBand",
|
"test": "jest --runInBand",
|
||||||
"build.docker_tests": "node ./dev/docker/__tests__/generate-docker-tests.mjs",
|
"build.docker_tests": "node ./dev/docker/__tests__/generate-docker-tests.mjs",
|
||||||
"build.docker.arch": "pnpm build.docker_tests && docker build -f ./dev/docker/__tests__/arch.dockerfile -t setup-cpp:arch .",
|
"build.docker.arch": "pnpm build.docker_tests && docker build -f ./dev/docker/__tests__/arch.dockerfile -t setup-cpp:arch .",
|
||||||
"build.docker.fedora": "pnpm build.docker_tests && docker build -f ./dev/docker/__tests__/fedora.dockerfile -t setup-cpp:fedora .",
|
"build.docker.fedora": "pnpm build.docker_tests && docker build -f ./dev/docker/__tests__/fedora.dockerfile -t setup-cpp:fedora .",
|
||||||
|
|
Loading…
Reference in New Issue