mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-04-10 23:34:02 +02:00
The task update_locales is using the GITHUB_TOKEN to push the changes to the update-locales branch, but this token doesn't trigger other workflows (see [1]), so we need to explicitly dispatch the required ones. [1] https://github.com/orgs/community/discussions/26970#discussioncomment-3254152
32 lines
624 B
YAML
32 lines
624 B
YAML
name: Prefs tests
|
|
on: [push, pull_request, workflow_dispatch]
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test:
|
|
name: Test
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
node-version: [lts/*]
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Run prefs tests
|
|
run: npx gulp prefstest
|