Skip to content

Commit

Permalink
Remove max concurrency from lychee (#1467)
Browse files Browse the repository at this point in the history
* Remove max concurrency from lychee

This job takes 14 minutes to run which is way too long. Let's remove the
max concurrency limit to try and speed it up.

* Add caching
  • Loading branch information
poteto authored Oct 25, 2024
1 parent c6dfedf commit 9e6bf08
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,39 @@ name: Node.js CI

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

jobs:
remark:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Test on Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn test
- uses: actions/checkout@v4
- name: Test on Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn test

links:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: lycheeverse/lychee-action@v2
with:
args: >-
--verbose
--no-progress
--require-https
--max-concurrency 2
--user-agent 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36'
'README.md'
output: ${{ runner.temp }}/lychee/out.md
fail: true
- uses: actions/checkout@v4
- uses: lycheeverse/lychee-action@v2
with:
args: >-
--verbose
--no-progress
--require-https
--cache
--user-agent 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36'
'README.md'
output: ${{ runner.temp }}/lychee/out.md
fail: true
- uses: actions/cache@v4
with:
path: .lycheecache
key: ${{ runner.os }}-lycheecache

0 comments on commit 9e6bf08

Please sign in to comment.