n8n/.github/workflows/check-tests.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
602 B
YAML
Raw Normal View History

build: Check test files (#6455) * build: Check test files * build: update test file checker glob pattern * build: ignore changed files in test folders * build: fix gh workflow * build: update gh events in workflow * build: fix gh workflow * build: fix gh workflow action script path * build: fix gh workflow script * build: fix gh workflow script * build: fix gh workflow script * build: fix gh workflow script * build: fix gh workflow script * build: update gh actions * build: update gh actions * build: test change file without test * Revert "build: test change file without test" This reverts commit 73f5c544c5f4218da48cea13bfb9008a9a51cbd9. * build: test change file that already has test * build: fix action script * Revert "build: test change file that already has test" This reverts commit 21be611abfdbce67fd7243a16d987bb21927de22. * build: update script * build: test checking with test file change * Revert "build: test checking with test file change" This reverts commit 995b64f6bab825fc16bed52c04baa7fcc15baa55. * build: change file with no testable content * build: use typescript to traverse a file * Revert "build: change file with no testable content" This reverts commit 05974b67c7ac455fdd1f09b1141268a98085db89. * build: change file with no testable content * Revert "build: change file with no testable content" This reverts commit 187cc57291fc2e9756e6b5f7f1b3b7009df4f8c2. * build: change file with testable content * Revert "build: change file with testable content" This reverts commit ce716119b751041a18f4b0f1312de488dab780cf. * build: add vue file without test * Revert "build: add vue file without test" This reverts commit 756f28a373502a8cac44d0e5c0d1400f972423a9. * build: add vue file with test * Revert "build: add vue file with test" This reverts commit 8022b112fc5a15f564dddc08d7e11d2e8133bcac. * build: gather all missing tests at once * build: allow job to fail * build: update error message
2023-06-20 04:35:04 -07:00
name: Check Test Files
on:
pull_request:
branches:
- '**'
- '!release/*'
pull_request_target:
branches:
- master
jobs:
check-tests:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout code
uses: actions/checkout@v4.1.1
build: Check test files (#6455) * build: Check test files * build: update test file checker glob pattern * build: ignore changed files in test folders * build: fix gh workflow * build: update gh events in workflow * build: fix gh workflow * build: fix gh workflow action script path * build: fix gh workflow script * build: fix gh workflow script * build: fix gh workflow script * build: fix gh workflow script * build: fix gh workflow script * build: update gh actions * build: update gh actions * build: test change file without test * Revert "build: test change file without test" This reverts commit 73f5c544c5f4218da48cea13bfb9008a9a51cbd9. * build: test change file that already has test * build: fix action script * Revert "build: test change file that already has test" This reverts commit 21be611abfdbce67fd7243a16d987bb21927de22. * build: update script * build: test checking with test file change * Revert "build: test checking with test file change" This reverts commit 995b64f6bab825fc16bed52c04baa7fcc15baa55. * build: change file with no testable content * build: use typescript to traverse a file * Revert "build: change file with no testable content" This reverts commit 05974b67c7ac455fdd1f09b1141268a98085db89. * build: change file with no testable content * Revert "build: change file with no testable content" This reverts commit 187cc57291fc2e9756e6b5f7f1b3b7009df4f8c2. * build: change file with testable content * Revert "build: change file with testable content" This reverts commit ce716119b751041a18f4b0f1312de488dab780cf. * build: add vue file without test * Revert "build: add vue file without test" This reverts commit 756f28a373502a8cac44d0e5c0d1400f972423a9. * build: add vue file with test * Revert "build: add vue file with test" This reverts commit 8022b112fc5a15f564dddc08d7e11d2e8133bcac. * build: gather all missing tests at once * build: allow job to fail * build: update error message
2023-06-20 04:35:04 -07:00
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v4.0.2
build: Check test files (#6455) * build: Check test files * build: update test file checker glob pattern * build: ignore changed files in test folders * build: fix gh workflow * build: update gh events in workflow * build: fix gh workflow * build: fix gh workflow action script path * build: fix gh workflow script * build: fix gh workflow script * build: fix gh workflow script * build: fix gh workflow script * build: fix gh workflow script * build: update gh actions * build: update gh actions * build: test change file without test * Revert "build: test change file without test" This reverts commit 73f5c544c5f4218da48cea13bfb9008a9a51cbd9. * build: test change file that already has test * build: fix action script * Revert "build: test change file that already has test" This reverts commit 21be611abfdbce67fd7243a16d987bb21927de22. * build: update script * build: test checking with test file change * Revert "build: test checking with test file change" This reverts commit 995b64f6bab825fc16bed52c04baa7fcc15baa55. * build: change file with no testable content * build: use typescript to traverse a file * Revert "build: change file with no testable content" This reverts commit 05974b67c7ac455fdd1f09b1141268a98085db89. * build: change file with no testable content * Revert "build: change file with no testable content" This reverts commit 187cc57291fc2e9756e6b5f7f1b3b7009df4f8c2. * build: change file with testable content * Revert "build: change file with testable content" This reverts commit ce716119b751041a18f4b0f1312de488dab780cf. * build: add vue file without test * Revert "build: add vue file without test" This reverts commit 756f28a373502a8cac44d0e5c0d1400f972423a9. * build: add vue file with test * Revert "build: add vue file with test" This reverts commit 8022b112fc5a15f564dddc08d7e11d2e8133bcac. * build: gather all missing tests at once * build: allow job to fail * build: update error message
2023-06-20 04:35:04 -07:00
with:
node-version: 20.x
build: Check test files (#6455) * build: Check test files * build: update test file checker glob pattern * build: ignore changed files in test folders * build: fix gh workflow * build: update gh events in workflow * build: fix gh workflow * build: fix gh workflow action script path * build: fix gh workflow script * build: fix gh workflow script * build: fix gh workflow script * build: fix gh workflow script * build: fix gh workflow script * build: update gh actions * build: update gh actions * build: test change file without test * Revert "build: test change file without test" This reverts commit 73f5c544c5f4218da48cea13bfb9008a9a51cbd9. * build: test change file that already has test * build: fix action script * Revert "build: test change file that already has test" This reverts commit 21be611abfdbce67fd7243a16d987bb21927de22. * build: update script * build: test checking with test file change * Revert "build: test checking with test file change" This reverts commit 995b64f6bab825fc16bed52c04baa7fcc15baa55. * build: change file with no testable content * build: use typescript to traverse a file * Revert "build: change file with no testable content" This reverts commit 05974b67c7ac455fdd1f09b1141268a98085db89. * build: change file with no testable content * Revert "build: change file with no testable content" This reverts commit 187cc57291fc2e9756e6b5f7f1b3b7009df4f8c2. * build: change file with testable content * Revert "build: change file with testable content" This reverts commit ce716119b751041a18f4b0f1312de488dab780cf. * build: add vue file without test * Revert "build: add vue file without test" This reverts commit 756f28a373502a8cac44d0e5c0d1400f972423a9. * build: add vue file with test * Revert "build: add vue file with test" This reverts commit 8022b112fc5a15f564dddc08d7e11d2e8133bcac. * build: gather all missing tests at once * build: allow job to fail * build: update error message
2023-06-20 04:35:04 -07:00
- run: npm install --prefix=.github/scripts --no-package-lock
- name: Check for test files
run: node .github/scripts/check-tests.mjs