Skip to content

Commit

Permalink
Merge branch 'main' into ci/push-spec-earl-reports
Browse files Browse the repository at this point in the history
  • Loading branch information
jitsedesmet committed Feb 6, 2025
2 parents 1a9406d + 818dbd6 commit 95eadb2
Show file tree
Hide file tree
Showing 9 changed files with 230 additions and 91 deletions.
16 changes: 0 additions & 16 deletions .github/dependabot.yml

This file was deleted.

47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
DEFAULT_NODE_VERSION: 22.x

jobs:
tooling:
strategy:
Expand All @@ -21,6 +24,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- run: yarn install --immutable
- run: yarn lint
- run: yarn depcheck
Expand All @@ -44,6 +48,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- run: yarn install --immutable
- run: yarn build
- run: yarn test
Expand All @@ -68,6 +73,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- run: yarn install --immutable
- run: yarn build
- name: Load RDF test suite cache
Expand All @@ -86,3 +92,44 @@ jobs:
with:
name: earl report
path: engines/*/spec/earl-*.ttl

documentation:
name: Prepare documentation
runs-on: ubuntu-latest
steps:
- name: Ensure line endings are consistent
run: git config --global core.autocrlf input
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.DEFAULT_NODE_VERSION }}
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build documentation
run: yarn run doc
- name: Prepare artifact
uses: actions/upload-pages-artifact@v3
with:
path: documentation
name: documentation

documentation-publish:
name: Publish documentation
needs:
- documentation
runs-on: ubuntu-latest
# The documentation is only published for main branch
if: startsWith(github.ref, 'refs/heads/main')
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
with:
artifact_name: documentation
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ out
.yarn
.rdf-test-suite-cache
.eslintcache
documentation

engines/*/lib/**/*.cjs
engines/*/lib/**/*.js
Expand Down
5 changes: 5 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,9 @@ export default config([
'ts/no-var-requires': 'off',
},
},
{
ignores: [
'documentation',
],
},
], { disableJest: true });
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"build:transpile-spec": "lerna run build:transpile-spec",
"clean": "git clean -dfx",
"depcheck": "lerna exec --concurrency 1 -- depcheck --ignores=\"vitest\"",
"doc": "typedoc",
"lint": "eslint . --cache",
"postinstall": "yarn husky && yarn run build",
"publish": "yarn run build",
Expand All @@ -27,16 +28,17 @@
"devDependencies": {
"@rdfjs/types": "^2.0.0",
"@rubensworks/eslint-config": "^3.1.0",
"@vitest/coverage-v8": "2.1.8",
"@vitest/coverage-v8": "3.0.5",
"depcheck": "^1.4.7",
"esbuild": "^0.24.0",
"eslint": "^8.57.0",
"husky": "^9.1.7",
"lerna": "8.1.4",
"manual-git-changelog": "^1.0.2",
"rdf-test-suite": "^2.0.0",
"typedoc": "^0.27.6",
"typescript": "^5.7.3",
"vite": "^6.0.11",
"vitest": "^3.0.4"
"vitest": "^3.0.5"
}
}
2 changes: 1 addition & 1 deletion packages/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"dependencies": {
"@traqula/core": "^0.0.0",
"rdf-data-factory": "^2.0.1",
"vitest": "^3.0.3"
"vitest": "*"
},
"devDependencies": {
"@rdfjs/types": "^2.0.0"
Expand Down
6 changes: 6 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"github>rubensworks/renovate-presets:js"
]
}
7 changes: 7 additions & 0 deletions typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "TRAQULA",
"out": "documentation",
"theme": "default",
"entryPointStrategy": "packages",
"entryPoints": ["engines/*", "packages/*"]
}
Loading

0 comments on commit 95eadb2

Please sign in to comment.