chore(deps): update actions/checkout digest to 11bd719 in .github/workflows/test.yml #241
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test syntax | |
on: | |
# Runs on pull requests targeting the default branch | |
pull_request: | |
branches: [main] | |
# Sets permissions of the GITHUB_TOKEN | |
permissions: | |
contents: read | |
issues: write | |
# Default to bash | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
# Build job | |
syntax-check: | |
runs-on: ubuntu-latest | |
env: | |
# renovate: datasource=github-releases depName=gohugo/hugo | |
HUGO_VERSION: 0.135.0 | |
steps: | |
- name: Install Hugo CLI | |
run: | | |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ | |
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb | |
- name: Install Dart Sass | |
run: sudo snap install dart-sass | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
submodules: recursive | |
- name: Setup Pages | |
id: pages | |
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5 | |
- name: Install Node.js dependencies | |
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" | |
- name: Build with Hugo | |
env: | |
# For maximum backward compatibility with Hugo modules | |
HUGO_ENVIRONMENT: testing | |
HUGO_ENV: testing | |
run: | | |
hugo --gc --minify --baseURL "${{ steps.pages.outputs.base_url }}/" | |
hugo -s subsite/docs --baseURL "${{ steps.pages.outputs.base_url }}/docs/" | |
mv subsite/docs/public public/docs | |
npx -y pagefind --site public | |
- name: Restore lychee cache | |
id: restore-cache | |
uses: actions/cache/restore@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4 | |
with: | |
path: .lycheecache | |
key: cache-lychee-${{ github.sha }} | |
restore-keys: cache-lychee- | |
- name: Link Checker | |
id: lychee | |
uses: lycheeverse/lychee-action@7cd0af4c74a61395d455af97419279d86aafaede # v2.0.2 | |
with: | |
fail: false | |
args: "--accept 200..=204,429 --cache --max-cache-age 1d -E './content/**/*.md'" | |
jobSummary: true | |
- name: Create Issue From File | |
if: env.lychee_exit_code != 0 | |
uses: peter-evans/create-issue-from-file@e8ef132d6df98ed982188e460ebb3b5d4ef3a9cd # v5 | |
with: | |
title: Link Checker Report | |
content-filepath: ./lychee/out.md | |
labels: report, automated issue | |
- name: Save lychee cache | |
uses: actions/cache/save@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4 | |
if: always() | |
with: | |
path: .lycheecache | |
key: ${{ steps.restore-cache.outputs.cache-primary-key }} | |