-
Notifications
You must be signed in to change notification settings - Fork 140
46 lines (39 loc) · 1.13 KB
/
Copy pathci.yml
File metadata and controls
46 lines (39 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Test library
on:
push:
branches-ignore:
- 'dependabot/**'
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
node-version:
- 20
- 22
- 24
- 25
env:
NODE_OPTIONS: '--dns-result-order=ipv4first'
steps:
- uses: actions/checkout@v7
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install dependencies
run: npm ci
- name: Unit tests
run: npm test
- name: Integration test
# Simple checks for now to guard against errors that stop it running at all, e.g. https://github.com/tcort/markdown-link-check/issues/370
run: |
./markdown-link-check test/alive-links-only.md || (echo "Error: Blew up with basic use" && exit 1)
./markdown-link-check test/alive-links-only.md --config test/empty-config.json || (echo "Error: Blew up with config file" && exit 1)