Skip to content

Auto-update dependabot #442

Auto-update dependabot

Auto-update dependabot #442

Workflow file for this run

name: Test all versions
on:
pull_request:
push:
branches:
- master
jobs:
node-compatibility:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['16', '18', '20']
steps:
- uses: actions/checkout@v2
- name: Setup NodeJS ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Run unittests
run: npm test
marked-compatibility:
runs-on: ubuntu-latest
strategy:
matrix:
marked-version:
[
'1.0.x',
'2.0.x',
'3.0.x',
'4.0.x',
'5.0.x',
'6.0.x',
'7.0.x',
'8.0.x',
'9.0.x',
'10.0.x',
'11.0.x',
'12.0.x',
'13.0.x',
'14.0.x',
]
steps:
- uses: actions/checkout@v2
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Install marked ${{ matrix.marked-version }}
run: npm install --no-save marked@${{ matrix.marked-version }}
- name: Run unittests
run: npm test
auto-merge:
needs:
- marked-compatibility
- node-compatibility
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: auto-merge
if: |
github.actor == 'dependabot[bot]' &&
github.event_name == 'pull_request'
run: |
./merge_dependabot.sh
env:
PR_URL: ${{github.event.pull_request.html_url}}
# this secret needs to be in the settings.secrets.dependabot
GITHUB_TOKEN: ${{secrets.GH_ACTION_TOKEN}}