main.yml
This file
Path
.github/workflows/main.yml
45 lines · 1.6 KiB · YAML
Last changed by
TweaksSindre Sorhusbefore adoption54d7404
History of this fileTake it
12345678910111213141516171819202122232425262728293031323334353637383940414243444546name: CIon: - push - pull_requestjobs: test: name: Node.js ${{ matrix.node-version }} on ${{ matrix.os }} runs-on: ${{ matrix.os }}-latest strategy: fail-fast: false matrix: node-version: - 26 - 24 - 22 os: - ubuntu - macos - windows steps: - uses: actions/cache@v6 with: path: .lycheecache key: cache-lychee-${{ github.sha }} restore-keys: cache-lychee- - uses: actions/checkout@v7 - uses: actions/setup-node@v7 with: node-version: ${{ matrix.node-version }} - run: npm install - uses: lycheeverse/lychee-action@v2 with: 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' fail: true if: ${{ matrix.os == 'ubuntu' && matrix.node-version == 26 }} - run: npm run lint if: ${{ matrix.os == 'ubuntu' && matrix.node-version == 26 }} - run: npm run type - run: npm run unit - uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} flags: '${{ matrix.os }}, node-${{ matrix.node-version }}' fail_ci_if_error: false verbose: true