Skip to content
Merged
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
19 changes: 0 additions & 19 deletions .github/actions/setup-node-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,7 @@ runs:
node_modules
key: modules-${{ hashFiles('package-lock.json') }}

- name: Cache Playwright Binaries
id: cache-playwright
uses: actions/cache@v4
with:
path: |
~/.cache/ms-playwright
key: playwright-${{ hashFiles('package-lock.json') }}

- name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm ci
shell: bash

- name: Install playwright browsers
if: steps.cache-playwright.outputs.cache-hit != 'true'
run: npx playwright install --with-deps
shell: bash

- name: Install system dependencies for WebKit
# Some WebKit dependencies seem to lay outside the cache and will need to be installed separately
if: steps.cache-playwright.outputs.cache-hit == 'true'
run: npx playwright install-deps webkit
shell: bash
8 changes: 5 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
name: Test
on: [push, pull_request, workflow_dispatch]

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- uses: ./.github/actions/setup-node-env

- name: Run ESLint checks
run: npm run-script lint

- name: Build
run: npm run-script build

- name: Run unit tests
run: npm run-script test
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
node_modules

dist

dist
coverage
# ignore typedoc output path
doc

.tsbuildinfo

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"test": "npm run build && wtr --coverage",
"test:watch": "npm run build && concurrently -k -r \"tsc -b --watch --preserveWatchOutput\" \"wtr --watch --coverage\"",
"build": "npx rimraf dist && tsc",
"doc": "npx rimraf doc && typedoc --out doc oscd-editor.ts",
"doc": "npx rimraf doc && typedoc --out doc src/oscd-editor.ts",
"prepare": "husky"
},
"devDependencies": {
Expand Down