Skip to content

chore(package): explicitly declare js module type #48

chore(package): explicitly declare js module type

chore(package): explicitly declare js module type #48

Workflow file for this run

name: CI
on:
push:
paths-ignore:
- 'docs/**'
- '*.md'
pull_request:
paths-ignore:
- 'docs/**'
- '*.md'
permissions:
contents: read
# 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
jobs:
test:
name: test
if: github.event.pull_request.draft == false
strategy:
matrix:
node: [14, 16, 18]
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup Node ${{ matrix.node }} on ${{ matrix.os }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install
run: npm i --ignore-scripts
- name: Run tests
run: npm test
# This job is used to save the PR number in an artifact, for use in the automerge.yml workflow
save-pr-number:
name: Save Dependabot PR Number
if: >
github.event.pull_request.draft == false &&
github.event_name == 'pull_request' &&
github.event.pull_request.user.login == 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Save PR number
run: |
mkdir -p ./pr
echo ${{ github.event.number }} > ./pr/NR
- name: Upload PR number in artifact
uses: actions/upload-artifact@v3
with:
name: pr
path: pr/