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
29 changes: 27 additions & 2 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: NPM build + test

on: [push]
on:
push

jobs:
build:
Expand All @@ -26,3 +26,28 @@ jobs:

- run: npm ci
- run: npm run build

test:
runs-on: ubuntu-latest
strategy:
matrix:
# @TODO add 16/18
node: [ '14' ]

name: Node ${{ matrix.node }} build
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-${{ matrix.node }}-npm-${{ hashFiles('**/package-lock.lock') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- run: npm ci
- run: npm run lint
- run: npx vitest run
29 changes: 19 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
# iiif-av-component

npm i
npm run build
npm start

## Example Manifests

https://iiif-commons.github.io/iiif-av-component/examples/data/bl/sounds-tests/index.html

# iiif-av-component

npm install
npm run build
npm start

## Run tests

npm run test

## Run eslint

npm run lint
npm run lint-fix

## Example Manifests

https://iiif-commons.github.io/iiif-av-component/examples/data/bl/sounds-tests/index.html

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
"prepublishOnly": "npm run build",
"start": "npx webpack serve -c webpack.dev-server.js",
"test": "vitest",
"test:reporter": "vitest --watch --reporter=dot --reporter=json --outputFile=.vitest-result.json"
"test:reporter": "vitest --watch --reporter=dot --reporter=json --outputFile=.vitest-result.json",
"lint": "eslint src/",
"lint-fix": "eslint --fix src/"
},
"repository": {
"type": "git",
Expand Down
Loading