Merge pull request #20952 from timvandermeij/github-actions-caching

Implement Node.js caching, and fix Python caching, in the GitHub Actions workflows
This commit is contained in:
Tim van der Meij 2026-03-24 21:15:09 +01:00 committed by GitHub
commit 1120b3d345
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
12 changed files with 17 additions and 7 deletions

1
.github/font_tests_requirements.txt vendored Normal file
View File

@ -0,0 +1 @@
fonttools==4.*

View File

@ -24,6 +24,7 @@ jobs:
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci

View File

@ -25,6 +25,7 @@ jobs:
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci

View File

@ -34,11 +34,10 @@ jobs:
with:
python-version: '3.14'
cache: 'pip'
cache-dependency-path: '.github/fluent_linter_requirements.txt'
- name: Install Fluent dependencies
run: |
pip install -r .github/requirements.txt
- name: Install requirements
run: pip install -r .github/fluent_linter_requirements.txt
- name: Lint Fluent reference files
run: |
moz-fluent-lint ./l10n/en-US --config .github/fluent_linter_config.yml
run: moz-fluent-lint ./l10n/en-US --config .github/fluent_linter_config.yml

View File

@ -46,6 +46,7 @@ jobs:
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
@ -55,9 +56,10 @@ jobs:
with:
python-version: '3.14'
cache: 'pip'
cache-dependency-path: '.github/font_tests_requirements.txt'
- name: Install Fonttools
run: pip install fonttools
- name: Install requirements
run: pip install -r .github/font_tests_requirements.txt
- name: Run font tests
run: npx gulp fonttest --headless

View File

@ -24,6 +24,7 @@ jobs:
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci

View File

@ -24,6 +24,7 @@ jobs:
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci

View File

@ -26,6 +26,7 @@ jobs:
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies

View File

@ -26,6 +26,7 @@ jobs:
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci

View File

@ -24,6 +24,7 @@ jobs:
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci

View File

@ -24,6 +24,7 @@ jobs:
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
with:
node-version: lts/*
cache: 'npm'
- name: Install dependencies
run: npm ci