Skip to content

Commit 2ab635a

Browse files
committed
added cache and defined node version
1 parent b0e3320 commit 2ab635a

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

.github/workflows/pr-check.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- main
77
paths-ignore:
8-
- 'public/**' # Ignore changes to the public directory
8+
- 'public/**' # Ignore changes to the public directory
99

1010
concurrency:
1111
group: pr-${{ github.event.pull_request.number }}
@@ -31,19 +31,20 @@ jobs:
3131

3232
- uses: actions/setup-node@v6
3333
with:
34-
node-version: lts/*
34+
node-version: 24
35+
cache: 'npm'
3536

3637
- name: Install dependencies
3738
run: npm ci -o
3839

3940
- uses: super-linter/super-linter/slim@9e863354e3ff62e0727d37183162c4a88873df41 # v8.6.0
4041
env:
4142
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42-
DEFAULT_BRANCH: main
43-
FILTER_REGEX_EXCLUDE: docs/tool/.*
43+
FILTER_REGEX_EXCLUDE: tools/.*
4444
VALIDATE_MARKDOWN: true
4545
VALIDATE_YAML: true
4646
MARKDOWN_CONFIG_FILE: .markdownlint.json
47+
ENABLE_GITHUB_ACTIONS_STEP_SUMMARY: true
4748

4849
test:
4950
permissions:
@@ -78,14 +79,22 @@ jobs:
7879
7980
- uses: actions/setup-node@v6
8081
with:
81-
node-version: lts/*
82+
node-version: 24
83+
cache: 'npm'
84+
85+
- name: Cache Playwright browsers
86+
uses: actions/cache@v5
87+
with:
88+
path: ~/.cache/ms-playwright
89+
key: ${{ runner.os }}-playwright-${{ hashFiles('package-lock.json') }}
8290

8391
- name: Install Dart Sass
8492
run: |
8593
npm install -g sass@${DART_SASS_VERSION}
8694
sass --version
8795
8896
- name: Install test dependencies
97+
timeout-minutes: 10
8998
run: |
9099
# Clean install of the node modules
91100

0 commit comments

Comments
 (0)