diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e6777ab43b..959a2a6209 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,6 +17,11 @@ jobs: - macos - windows steps: + - uses: actions/cache@v4 + with: + path: .lycheecache + key: cache-lychee-${{ github.sha }} + restore-keys: cache-lychee- - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: @@ -24,7 +29,7 @@ jobs: - run: npm install - uses: lycheeverse/lychee-action@v1 with: - args: --verbose --no-progress --include-fragments --max-concurrency 10 --exclude linkedin --exclude file:///test --exclude invalid.com '*.md' 'docs/*.md' '.github/**/*.md' '*.json' '*.js' 'lib/**/*.js' 'test/**/*.js' '*.ts' 'test-d/**/*.ts' + args: --cache --verbose --no-progress --include-fragments --exclude linkedin --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 == 22 }} - run: npm run lint