Skip to content

Commit

Permalink
Merge branch 'production' into patricia/nc5129-nc5130
Browse files Browse the repository at this point in the history
  • Loading branch information
patriciasantaana committed Aug 14, 2024
2 parents 8970c74 + e8218f0 commit 4c25f24
Show file tree
Hide file tree
Showing 133 changed files with 20,741 additions and 353 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI

on:
pull_request:
branches:
- production

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
compile:
name: Compiles
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-node@v4
with:
node-version: 22

- name: Get npm cache directory
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}

- uses: actions/cache@v4
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci

- run: npx astro build
env:
NODE_OPTIONS: "--max-old-space-size=4192"

- name: Check - Validate redirects (infinite loops, sources with fragment)
run: npx tsm bin/validate-redirects.ts
2 changes: 1 addition & 1 deletion bin/validate-redirects.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { readFile } from 'fs/promises';

async function main( ){
const redirects = await readFile('content/_redirects', { encoding: 'utf-8' });
const redirects = await readFile('public/_redirects', { encoding: 'utf-8' });

let numInfiniteRedirects = 0;
let numUrlsWithFragment = 0;
Expand Down
Loading

0 comments on commit 4c25f24

Please sign in to comment.