Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ jobs:
matrix:
lint_lang: [ 'lint-md', 'lint-js', 'lint-php' ]
name: ${{ matrix.lint_lang }}
env:
# Auto-approve corepack's yarn download
COREPACK_ENABLE_DOWNLOAD_PROMPT: "0"
# Overrides any .yarnrc.yml so a forked pull-request cannot re-enable scripts
YARN_ENABLE_SCRIPTS: "false"
# Limit concurrent npm requests to avoid rate limiting in CI
YARN_NETWORK_CONCURRENCY: "1"
steps:

- name: Checkout code
Expand All @@ -41,10 +48,12 @@ jobs:
with:
node-version: ${{ steps.read-nvm.outputs.version }}

- name: Install yarn
- name: Enable corepack
if: ${{ matrix.lint_lang == 'lint-md' || matrix.lint_lang == 'lint-js' }}
run: |
npm install --global yarn
# corepack is bundled with node 18 and provisions the yarn version declared in packageManager.
# Node 25+ does not bundle corepack - if node is bumped past 24, add npm install -g corepack first.
corepack enable

- name: Run lint
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/merge-up.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
actions: write
steps:
- name: Merge-up
uses: silverstripe/gha-merge-up@v2
uses: silverstripe/gha-merge-up@v3
2 changes: 1 addition & 1 deletion .github/workflows/update-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Update JS
uses: silverstripe/gha-update-js@v1
uses: silverstripe/gha-update-js@v2
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}
],
"require-dev": {
"silverstripe/documentation-lint": "^1"
"silverstripe/documentation-lint": "^2"
},
"config": {
"allow-plugins": {
Expand Down
Loading