chore(deps): bump actions/setup-node from 3.7.0 to 4.1.0 #702
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches-ignore: | |
# Dependabot always opens a PR so no need to trigger this twice | |
- 'dependabot/**' | |
pull_request: | |
env: | |
CI: true | |
jobs: | |
pre_job: | |
name: Check for unecessary runs | |
runs-on: ubuntu-latest | |
# Map a step output to a job output | |
outputs: | |
should_skip: ${{ steps.skip_check.outputs.should_skip }} | |
steps: | |
- id: skip_check | |
uses: fkirc/[email protected] | |
with: | |
cancel_others: 'true' | |
concurrent_skipping: 'true' | |
skip_after_successful_duplicate: 'true' | |
paths_ignore: '["**/README.md"]' | |
do_not_skip: '["pull_request"]' | |
build-and-test: | |
needs: pre_job | |
if: ${{ needs.pre_job.outputs.should_skip != 'true' }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node-version: [18.x, 20.x, 22.x] | |
os: | |
- macos-13 | |
- ubuntu-latest | |
- windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm install --no-fund | |
- run: npm test | |
- name: Run tests for ESM | |
run: npm run test:esm | |
eslint: | |
needs: pre_job | |
if: ${{ needs.pre_job.outputs.should_skip != 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Use Node.js 22 | |
uses: actions/[email protected] | |
with: | |
node-version: 22 | |
- run: npm install --no-audit --ignore-scripts --no-fund | |
- run: npm run lint | |
clang-format: | |
needs: pre_job | |
if: ${{ needs.pre_job.outputs.should_skip != 'true' }} | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Install clang-format | |
run: sudo apt-get install clang-format | |
- name: Check style | |
run: clang-format --style=Google --Werror --dry-run src/zopflipng.cc |