Skip to content

build(deps-dev): Bump eslint-plugin-unicorn from 50.0.1 to 51.0.1 #357

build(deps-dev): Bump eslint-plugin-unicorn from 50.0.1 to 51.0.1

build(deps-dev): Bump eslint-plugin-unicorn from 50.0.1 to 51.0.1 #357

Workflow file for this run

# GitHub Actions Workflow configuration
# https://docs.github.com/actions/reference/workflow-syntax-for-github-actions
# https://docs.github.com/actions/guides/building-and-testing-nodejs
name: Node.js CI
# Note: on key treated as boolean key by YAML
# https://github.com/adrienverge/yamllint/issues/158#issuecomment-454313233
# However, GitHub Actions documentation is consistent in using it unquoted.
on: # yamllint disable-line rule:truthy
pull_request:
branches-ignore:
- template
push:
branches-ignore:
- template
workflow_dispatch: {}
jobs:
test-primary:
name: Lint and Test on Node.js * x64 on ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
# Note: '*' is "latest LTS version" (without check-latest, it would be
# "latest LTS version in local cache") because it first checks
# https://github.com/actions/node-versions/releases then falls back to
# https://nodejs.org/dist/index.json
# For explanation and discussion, see:
# https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#check-latest-version=
# https://github.com/actions/setup-node/issues/61#issuecomment-577548687
# https://github.com/actions/setup-node/issues/164#issuecomment-648999618
# https://github.com/actions/setup-node/pull/104
#
# Support for "current"/"latest"/"node" was added in v3.2.0
# https://github.com/actions/setup-node/pull/483
node-version: latest
architecture: x64
check-latest: true
- name: Display Node.js version
run: node --version
- name: Install dependencies
run: npm install --strict-peer-deps
- name: Lint
run: npm run lint
- name: Run tests
run: npm run test-eslint
test-secondary:
# Only test secondary platforms if primary test platform passed
needs:
- test-primary
name: >-
Test on Node.js ${{ matrix.node }} ${{ matrix.arch }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
arch:
# Uncomment if package needs testing on different architectures
# - x86
- x64
os:
# Uncomment if package needs testing on macOS:
# - macos-latest
- ubuntu-latest
- windows-latest
node:
- '18'
- 'latest'
exclude:
# Exclude os/version already run in test-primary
- arch: x64
os: ubuntu-latest
node: latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
architecture: ${{ matrix.arch }}
check-latest: ${{ matrix.node == '*' }}
- name: Display Node.js version
run: node --version
- name: Install dependencies
run: npm install --strict-peer-deps
- name: Run tests
run: npm run test-eslint