From ab5b2305f561373ee6dd43f60587ece685ca240d Mon Sep 17 00:00:00 2001 From: Stephen Renwick Date: Wed, 12 Nov 2025 15:31:41 +0100 Subject: [PATCH 1/2] fix: correct typedoc src path Release-As: 1.7.1 --- .gitignore | 5 +++-- package.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 25e5453..58bc200 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,9 @@ node_modules -dist - +dist coverage +# ignore typedoc output path +doc .tsbuildinfo diff --git a/package.json b/package.json index da6cc5a..ec7494e 100644 --- a/package.json +++ b/package.json @@ -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": { From 440328342fd61d3991338fe1223a42e7c22ccb44 Mon Sep 17 00:00:00 2001 From: Stephen Renwick Date: Wed, 12 Nov 2025 15:40:31 +0100 Subject: [PATCH 2/2] chore: align git workflows with oscd-api --- .github/actions/setup-node-env/action.yml | 19 ------------------- .github/workflows/test.yml | 8 +++++--- 2 files changed, 5 insertions(+), 22 deletions(-) diff --git a/.github/actions/setup-node-env/action.yml b/.github/actions/setup-node-env/action.yml index e7b07fb..19daedf 100644 --- a/.github/actions/setup-node-env/action.yml +++ b/.github/actions/setup-node-env/action.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 12eae86..9e32b20 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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