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
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '22'
cache: npm
cache-dependency-path: package.json

# The release asset is the userscript itself, so it ships only if its own suite passes.
- name: Check userscript syntax
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
name: Tests

on:
push:
branches: ['**']
# Test PRs once. Release publication tests the merged main commit separately.
pull_request:
workflow_dispatch:

permissions:
contents: read

concurrency:
group: tests-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -17,6 +23,8 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '22'
cache: npm
cache-dependency-path: package.json

- name: Check userscript syntax
run: node --check javstore-full-layout-cleanup.user.js
Expand Down
Loading