Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
- package-ecosystem: npm
directory: /
schedule:
interval: weekly
56 changes: 56 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: CI

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
node:
name: Node.js ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [22, 24]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
- run: npm test

bun:
name: Bun
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- uses: actions/cache@v4
with:
path: ~/.bun/install/cache
key: bun-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
restore-keys: bun-${{ runner.os }}-
- run: bun install
- run: bun run test

deno:
name: Deno
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v2
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- uses: actions/cache@v4
with:
path: ~/.cache/deno
key: deno-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
restore-keys: deno-${{ runner.os }}-
- run: npm ci
- run: deno task test
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ node_modules

# Debug log from npm
npm-debug.log

# Bun
bun.lockb
bun.lock
6 changes: 6 additions & 0 deletions deno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"nodeModulesDir": "manual",
"tasks": {
"test": "deno -A node_modules/.bin/jest --testPathPatterns='oslc-unit'"
}
}
1 change: 1 addition & 0 deletions media.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ define('text', 'text/plain');
define('n3', 'text/n3');
define('jsonld', 'application/ld+json');
define('json', 'application/json');
define('rdfxml', 'application/rdf+xml');
Loading