Files
node-poppler/.github/workflows/ci.yml
T
dependabot[bot] d721413ef5 ci(deps): bump the fdawgs-owned group with 3 updates (#805)
Bumps the fdawgs-owned group with 3 updates: [fdawgs/workflows/.github/workflows/reusable-code-quality.yml](https://github.com/fdawgs/workflows), [fdawgs/workflows/.github/workflows/reusable-link-check.yml](https://github.com/fdawgs/workflows) and [fdawgs/workflows/.github/workflows/reusable-lock-threads.yml](https://github.com/fdawgs/workflows).


Updates `fdawgs/workflows/.github/workflows/reusable-code-quality.yml` from 2.1.0 to 2.1.2
- [Release notes](https://github.com/fdawgs/workflows/releases)
- [Commits](https://github.com/fdawgs/workflows/compare/d1e4b4f907d13700a600837a18e8d01c56b179bd...157c20f8c0ef03c36f2bdf7c53f76bed063f55b8)

Updates `fdawgs/workflows/.github/workflows/reusable-link-check.yml` from 2.1.0 to 2.1.2
- [Release notes](https://github.com/fdawgs/workflows/releases)
- [Commits](https://github.com/fdawgs/workflows/compare/d1e4b4f907d13700a600837a18e8d01c56b179bd...157c20f8c0ef03c36f2bdf7c53f76bed063f55b8)

Updates `fdawgs/workflows/.github/workflows/reusable-lock-threads.yml` from 2.1.0 to 2.1.2
- [Release notes](https://github.com/fdawgs/workflows/releases)
- [Commits](https://github.com/fdawgs/workflows/compare/d1e4b4f907d13700a600837a18e8d01c56b179bd...157c20f8c0ef03c36f2bdf7c53f76bed063f55b8)

---
updated-dependencies:
- dependency-name: fdawgs/workflows/.github/workflows/reusable-code-quality.yml
  dependency-version: 2.1.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: fdawgs-owned
- dependency-name: fdawgs/workflows/.github/workflows/reusable-link-check.yml
  dependency-version: 2.1.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: fdawgs-owned
- dependency-name: fdawgs/workflows/.github/workflows/reusable-lock-threads.yml
  dependency-version: 2.1.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: fdawgs-owned
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-11 09:06:49 +00:00

118 lines
3.9 KiB
YAML

name: CI
# **What it does**: Runs tests.
# **Why we have it**: Ensures tests pass before merging code.
on:
push:
branches:
- main
paths-ignore:
- "docs/**"
- "*.md"
pull_request:
branches:
- main
paths-ignore:
- "docs/**"
- "*.md"
types: [opened, ready_for_review, reopened, synchronize]
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: "${{ github.workflow }}-${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
cancel-in-progress: true
permissions:
contents: read
jobs:
code-quality:
name: Code Quality
uses: fdawgs/workflows/.github/workflows/reusable-code-quality.yml@157c20f8c0ef03c36f2bdf7c53f76bed063f55b8 # v2.1.2
permissions:
contents: read
with:
commitlint: true
lint: true
unit-tests:
name: Unit Tests
strategy:
matrix:
node-version: [20, 22, 24, 26]
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
permissions:
contents: read
steps:
- name: Check out repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
check-latest: true
node-version: ${{ matrix.node-version }}
- name: Install
run: npm i --ignore-scripts
- name: Install macOS dependencies
if: matrix.os == 'macos-latest'
env:
HOMEBREW_NO_ANALYTICS: 1
HOMEBREW_NO_INSTALL_CLEANUP: 1
HOMEBREW_NO_AUTO_UPDATE: 1
run: brew install poppler
- name: Install Ubuntu dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get -q update
sudo apt-get -y --no-install-recommends install poppler-data poppler-utils
- name: Run tests
run: npm run test:unit:coverage
- name: Coveralls parallel
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel: true
flag-name: run-${{ matrix.node-version }}-${{ matrix.os }}
coverage:
name: Aggregate Coverage Calculations
needs: unit-tests
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Coveralls finished
uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
automerge:
name: Automerge Dependabot PRs
needs: [code-quality, unit-tests]
if: >
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name == github.repository &&
github.event.pull_request.user.login == 'dependabot[bot]'
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: fastify/github-action-merge-dependabot@30c3f8f14a4f7b315ba38dbc1b793d27128fef82 # v3.12.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
merge-method: squash