Skip to content

build(deps): bump the dependencies group across 1 directory with 3 updates #111

build(deps): bump the dependencies group across 1 directory with 3 updates

build(deps): bump the dependencies group across 1 directory with 3 updates #111

Workflow file for this run

name: Build and test site
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: Build Astro site
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Fetch translations
# Only build with translations on push to main
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
uses: crowdin/github-action@c7af9bc98b01694653031fef2a0dc6c7888ce9bc # v2.17.0
with:
upload_sources: false
upload_translations: false
download_translations: true
crowdin_branch_name: main
push_translations: false
create_pull_request: false
env:
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
- name: Build website
run: |
pnpm run build
- name: Upload html output as artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: html-${{ github.run_id }}
path: ./dist
link_check:
name: Check internal links
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout lychee config file from repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
sparse-checkout: |
lychee.toml
sparse-checkout-cone-mode: false
- name: Ensure destination folder exists
run: |
mkdir ./dist
- name: Download html files from artifact
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: html-${{ github.run_id }}
path: ./dist
- name: Offline link check
uses: lycheeverse/lychee-action@e7477775783ea5526144ba13e8db5eec57747ce8 # v2.9.0
with:
# Only check local files, no network requests
args: --config './lychee.toml' --no-progress --offline --root-dir "$GITHUB_WORKSPACE/dist/" dist/**/*.html
# Fail job when lychee returns a non-zero exit code
fail: true