Skip to content

Commit

Permalink
Merge branch 'main' into 2661-zarf-connect-help-update
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasrod16 committed Jun 25, 2024
2 parents 4a91b72 + 2ecaaa0 commit 043e7a2
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 11 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test-site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Test Site
on:
pull_request:

permissions:
contents: read

# Abort prior jobs in the same workflow / PR
concurrency:
group: site-${{ github.ref }}
cancel-in-progress: true

jobs:
validate:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./site
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Setup Node.js
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2

- name: npm ci
run: npm ci

- name: run site build
run: npm run build

- name: check links
run: npm run link-check
8 changes: 6 additions & 2 deletions .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
- "adr/**"
- "docs/**"
- "CODEOWNERS"
push:
# Running unit tests on main gives codecov a base to compare PRs against
branches:
- main

permissions:
contents: read
Expand All @@ -31,8 +35,8 @@ jobs:

- name: Run unit tests
run: make test-unit

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c # v4.4.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
token: ${{ secrets.CODECOV_TOKEN }}
4 changes: 3 additions & 1 deletion site/hack/copy-examples.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { promises as fs } from "fs";
import path from "path";
import yaml from "yaml";
import { fileURLToPath } from 'url';

const __dirname = import.meta.dirname;
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

const examplesDir = path.join(__dirname, "../../examples");
const dstDir = path.join(__dirname, "../src/content/docs/ref/Examples");
Expand Down
2 changes: 1 addition & 1 deletion site/linkinator.config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"skip": "^(https://.*github.com)",
"skip": "^(https://.*)",
"verbosity": "error"
}
18 changes: 11 additions & 7 deletions site/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 043e7a2

Please sign in to comment.