Skip to content

Commit d213a57

Browse files
authored
Fetch hyperformula-tests before running linter (#1672)
## Summary The lint GitHub Action did not check out the `hyperformula-tests` repository before running ESLint. As a result, lint errors inside files under `test/hyperformula-tests/` were silently skipped in CI and only surfaced when running `npm run lint` locally. This PR aligns `.github/workflows/lint.yml` with `.github/workflows/test.yml` so the linter sees the same source tree as the test jobs. ## Changes - `.github/workflows/lint.yml` - Add a `Checkout hyperformula-tests repository` step (using `DEPLOY_TOKEN`, target path `test/hyperformula-tests`). - Add a `Fetch hyperformula-tests and sync branches` step running `test/fetch-tests.sh`. - Name the existing main-repo checkout step for consistency with `test.yml`.
1 parent 1b6767f commit d213a57

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/lint.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,18 @@ jobs:
2828
with:
2929
node-version: ${{ matrix.node-version }}
3030

31-
- uses: actions/checkout@722adc63f1aa60a57ec37892e133b1d319cae598 # https://github.com/actions/checkout/releases/tag/v2.0.0
31+
- name: Checkout main repository
32+
uses: actions/checkout@722adc63f1aa60a57ec37892e133b1d319cae598 # https://github.com/actions/checkout/releases/tag/v2.0.0
33+
34+
- name: Checkout hyperformula-tests repository
35+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
36+
with:
37+
ssh-key: ${{ secrets.DEPLOY_TOKEN }}
38+
repository: handsontable/hyperformula-tests
39+
path: test/hyperformula-tests
40+
41+
- name: Fetch hyperformula-tests and sync branches
42+
run: cd test && ./fetch-tests.sh
3243

3344
- name: Install dependencies
3445
run: npm ci

0 commit comments

Comments
 (0)