Skip to content
Myr

main.yml

This file

Path

.github/workflows/main.yml

45 lines · 1.6 KiB · YAML

Last changed by

TweaksSindre Sorhusbefore adoption54d7404

History of this file

Take it

The walk stopped after 200 commits: lines older than 9f65b86 point at it.

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 1–12why, one step back
1name: CI
2on:3 - push4 - pull_request5jobs:6 test:7 name: Node.js ${{ matrix.node-version }} on ${{ matrix.os }}8 runs-on: ${{ matrix.os }}-latest9 strategy:10 fail-fast: false11 matrix:12 node-version:

Update test coverage for Node.js 26 (#1242)Sindre Sorhusbefore adoption68986b7

line 13why, one step back
13 - 26

Fix Node 24-specific deprecation warning (#1199)ehmickybefore adoption1ac5b91

line 14why, one step back
14 - 24

Require Node.js 22 (#1243)Sindre Sorhusbefore adoption04b4454

line 15why, one step back
15 - 22

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 16–20why, one step back
16 os:
17 - ubuntu18 - macos19 - windows20 steps:

Require Node.js 22 (#1243)Sindre Sorhusbefore adoption04b4454

line 21why, one step back
21 - uses: actions/cache@v6

Send fewer requests with link checking (#1122)ehmickybefore adoption8ae6975

lines 22–25why, one step back
22 with:
23 path: .lycheecache24 key: cache-lychee-${{ github.sha }}25 restore-keys: cache-lychee-

Require Node.js 22 (#1243)Sindre Sorhusbefore adoption04b4454

line 26why, one step back
26 - uses: actions/checkout@v7

TweaksSindre Sorhusbefore adoption54d7404

line 27why, one step back
27 - uses: actions/setup-node@v7

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 28–30why, one step back
28 with:
29 node-version: ${{ matrix.node-version }}30 - run: npm install

Require Node.js 22 (#1243)Sindre Sorhusbefore adoption04b4454

line 31why, one step back
31 - uses: lycheeverse/lychee-action@v2

Automatically check Markdown links (#1120)ehmickybefore adoption4044152

line 32why, one step back
32 with:

Add `{value: 'pipe', input: true}` to use an additional file descriptor as input (#1246)Sindre Sorhusbefore adoption487a3a4

line 33why, one step back
33 args: --cache --verbose --no-progress --include-fragments --exclude packagephobia --exclude /pull/ --exclude depot.dev --exclude linkedin --exclude stackoverflow --exclude stackexchange --exclude github.com/nodejs/node --exclude github.com/denoland/deno --exclude file:///test --exclude invalid.com '*.md' 'docs/*.md' '.github/**/*.md' '*.json' '*.js' 'lib/**/*.js' 'test/**/*.js' '*.ts' 'test-d/**/*.ts'

Automatically check Markdown links (#1120)ehmickybefore adoption4044152

line 34why, one step back
34 fail: true

Update test coverage for Node.js 26 (#1242)Sindre Sorhusbefore adoption68986b7

line 35why, one step back
35 if: ${{ matrix.os == 'ubuntu' && matrix.node-version == 26 }}

Split CI jobs (#1052)ehmickybefore adoption733d6ff

line 36why, one step back
36 - run: npm run lint

Require Node.js 22 (#1243)Sindre Sorhusbefore adoption04b4454

line 37why, one step back
37 if: ${{ matrix.os == 'ubuntu' && matrix.node-version == 26 }}

Split CI jobs (#1052)ehmickybefore adoption733d6ff

lines 38–39why, one step back
38 - run: npm run type
39 - run: npm run unit

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 40–45why, one step back
40 - uses: codecov/codecov-action@v4
41 with:42 token: ${{ secrets.CODECOV_TOKEN }}43 flags: '${{ matrix.os }}, node-${{ matrix.node-version }}'44 fail_ci_if_error: false45 verbose: true