mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-06-28 02:55:49 +02:00
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:
commit
1120b3d345
1
.github/font_tests_requirements.txt
vendored
Normal file
1
.github/font_tests_requirements.txt
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
fonttools==4.*
|
||||||
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@ -24,6 +24,7 @@ jobs:
|
|||||||
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
|
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
|
cache: 'npm'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|||||||
1
.github/workflows/coverage.yml
vendored
1
.github/workflows/coverage.yml
vendored
@ -25,6 +25,7 @@ jobs:
|
|||||||
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
|
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
|
cache: 'npm'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|||||||
9
.github/workflows/fluent_linter.yml
vendored
9
.github/workflows/fluent_linter.yml
vendored
@ -34,11 +34,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: '3.14'
|
python-version: '3.14'
|
||||||
cache: 'pip'
|
cache: 'pip'
|
||||||
|
cache-dependency-path: '.github/fluent_linter_requirements.txt'
|
||||||
|
|
||||||
- name: Install Fluent dependencies
|
- name: Install requirements
|
||||||
run: |
|
run: pip install -r .github/fluent_linter_requirements.txt
|
||||||
pip install -r .github/requirements.txt
|
|
||||||
|
|
||||||
- name: Lint Fluent reference files
|
- name: Lint Fluent reference files
|
||||||
run: |
|
run: moz-fluent-lint ./l10n/en-US --config .github/fluent_linter_config.yml
|
||||||
moz-fluent-lint ./l10n/en-US --config .github/fluent_linter_config.yml
|
|
||||||
|
|||||||
6
.github/workflows/font_tests.yml
vendored
6
.github/workflows/font_tests.yml
vendored
@ -46,6 +46,7 @@ jobs:
|
|||||||
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
|
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
|
cache: 'npm'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
@ -55,9 +56,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: '3.14'
|
python-version: '3.14'
|
||||||
cache: 'pip'
|
cache: 'pip'
|
||||||
|
cache-dependency-path: '.github/font_tests_requirements.txt'
|
||||||
|
|
||||||
- name: Install Fonttools
|
- name: Install requirements
|
||||||
run: pip install fonttools
|
run: pip install -r .github/font_tests_requirements.txt
|
||||||
|
|
||||||
- name: Run font tests
|
- name: Run font tests
|
||||||
run: npx gulp fonttest --headless
|
run: npx gulp fonttest --headless
|
||||||
|
|||||||
1
.github/workflows/lint.yml
vendored
1
.github/workflows/lint.yml
vendored
@ -24,6 +24,7 @@ jobs:
|
|||||||
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
|
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
|
cache: 'npm'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|||||||
1
.github/workflows/prefs_tests.yml
vendored
1
.github/workflows/prefs_tests.yml
vendored
@ -24,6 +24,7 @@ jobs:
|
|||||||
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
|
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
|
cache: 'npm'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|||||||
1
.github/workflows/publish_release.yml
vendored
1
.github/workflows/publish_release.yml
vendored
@ -26,6 +26,7 @@ jobs:
|
|||||||
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
|
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
|
cache: 'npm'
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|||||||
1
.github/workflows/publish_website.yml
vendored
1
.github/workflows/publish_website.yml
vendored
@ -26,6 +26,7 @@ jobs:
|
|||||||
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
|
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
|
cache: 'npm'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|||||||
1
.github/workflows/types_tests.yml
vendored
1
.github/workflows/types_tests.yml
vendored
@ -24,6 +24,7 @@ jobs:
|
|||||||
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
|
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
|
cache: 'npm'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|||||||
1
.github/workflows/update_locales.yml
vendored
1
.github/workflows/update_locales.yml
vendored
@ -24,6 +24,7 @@ jobs:
|
|||||||
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
|
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
|
||||||
with:
|
with:
|
||||||
node-version: lts/*
|
node-version: lts/*
|
||||||
|
cache: 'npm'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user