* constrain auto-close and enforce-dependency-review triggers we don't need to run these on PR close or when we apply labels, for example * skip workflows on push to dependabot branch * use PAT if available else fall back to workflow token * further constrain pull_request triggers Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
35 lines
773 B
YAML
35 lines
773 B
YAML
name: Package Library
|
|
on:
|
|
pull_request:
|
|
types: [opened, edited, reopened, synchronize]
|
|
push:
|
|
branches-ignore:
|
|
- 'gh-pages'
|
|
- 'dependabot/**'
|
|
|
|
jobs:
|
|
test-package-lib:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
- node: '14'
|
|
engine-strict: 'false'
|
|
- node: '16'
|
|
engine-strict: 'true'
|
|
- node: '18'
|
|
engine-strict: 'false'
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup
|
|
uses: ./.github/actions/setup
|
|
with:
|
|
node-version: ${{ matrix.node }}
|
|
env:
|
|
NPM_CONFIG_ENGINE_STRICT: ${{ matrix.engine-strict }}
|
|
|
|
- name: Package tests
|
|
uses: ./.github/actions/package-tests
|