-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docsy] Add GH workflows and fix link paths to papers (#81)
- Loading branch information
Showing
3 changed files
with
66 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Files | ||
|
||
on: | ||
merge_group: | ||
pull_request: | ||
push: { branches: [main] } | ||
|
||
jobs: | ||
check-filenames: | ||
name: FILENAME check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: npm run check:filenames | ||
|
||
check-formatting: | ||
name: FILE FORMAT | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Create NPM cache-hash input file | ||
run: | | ||
mkdir -p tmp | ||
jq '{devDependencies, engines, gitHubActionCacheKey}' package.json > tmp/package-ci.json | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: npm | ||
cache-dependency-path: tmp/package-ci.json | ||
|
||
- name: Check file format | ||
run: npm run check:format --ignore-scripts |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Links | ||
|
||
on: | ||
merge_group: | ||
pull_request: | ||
push: { branches: [main] } | ||
|
||
jobs: | ||
build-and-check-links: | ||
name: BUILD and CHECK LINKS | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Create NPM cache-hash input file | ||
run: | | ||
mkdir -p tmp | ||
jq '{devDependencies, engines, gitHubActionCacheKey}' package.json > tmp/package-ci.json | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: npm | ||
cache-dependency-path: tmp/package-ci.json | ||
|
||
- run: npm install --omit=optional | ||
|
||
- run: npm run check:links |
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