Skip to content

Commit

Permalink
Merge pull request #19 from bigskysoftware/extensions-CI
Browse files Browse the repository at this point in the history
GitHub Actions for extensions that have tests
  • Loading branch information
Telroshan committed Apr 28, 2024
2 parents cabecde + b0f8987 commit 3dc8b44
Show file tree
Hide file tree
Showing 19 changed files with 532 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ajax-header.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Tests - ajax-header

on:
push:
branches: [ main ]
paths:
- 'src/ajax-header/**'
- '.github/workflows/ajax-header.yml'
pull_request:
branches: [ main ]
paths:
- 'src/ajax-header/**'
- '.github/workflows/ajax-header.yml'
workflow_dispatch:

jobs:
test_suite:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: npm ci
working-directory: ./src/ajax-header
- run: npm test
working-directory: ./src/ajax-header
28 changes: 28 additions & 0 deletions .github/workflows/class-tools.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Tests - class-tools

on:
push:
branches: [ main ]
paths:
- 'src/class-tools/**'
- '.github/workflows/class-tools.yml'
pull_request:
branches: [ main ]
paths:
- 'src/class-tools/**'
- '.github/workflows/class-tools.yml'
workflow_dispatch:

jobs:
test_suite:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: npm ci
working-directory: ./src/class-tools
- run: npm test
working-directory: ./src/class-tools
28 changes: 28 additions & 0 deletions .github/workflows/client-side-templates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Tests - client-side-templates

on:
push:
branches: [ main ]
paths:
- 'src/client-side-templates/**'
- '.github/workflows/client-side-templates.yml'
pull_request:
branches: [ main ]
paths:
- 'src/client-side-templates/**'
- '.github/workflows/client-side-templates.yml'
workflow_dispatch:

jobs:
test_suite:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: npm ci
working-directory: ./src/client-side-templates
- run: npm test
working-directory: ./src/client-side-templates
28 changes: 28 additions & 0 deletions .github/workflows/debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Tests - debug

on:
push:
branches: [ main ]
paths:
- 'src/debug/**'
- '.github/workflows/debug.yml'
pull_request:
branches: [ main ]
paths:
- 'src/debug/**'
- '.github/workflows/debug.yml'
workflow_dispatch:

jobs:
test_suite:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: npm ci
working-directory: ./src/debug
- run: npm test
working-directory: ./src/debug
28 changes: 28 additions & 0 deletions .github/workflows/disable-element.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Tests - disable-element

on:
push:
branches: [ main ]
paths:
- 'src/disable-element/**'
- '.github/workflows/disable-element.yml'
pull_request:
branches: [ main ]
paths:
- 'src/disable-element/**'
- '.github/workflows/disable-element.yml'
workflow_dispatch:

jobs:
test_suite:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: npm ci
working-directory: ./src/disable-element
- run: npm test
working-directory: ./src/disable-element
28 changes: 28 additions & 0 deletions .github/workflows/event-header.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Tests - event-header

on:
push:
branches: [ main ]
paths:
- 'src/event-header/**'
- '.github/workflows/event-header.yml'
pull_request:
branches: [ main ]
paths:
- 'src/event-header/**'
- '.github/workflows/event-header.yml'
workflow_dispatch:

jobs:
test_suite:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: npm ci
working-directory: ./src/event-header
- run: npm test
working-directory: ./src/event-header
28 changes: 28 additions & 0 deletions .github/workflows/htmx-1-compat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Tests - htmx-1-compat

on:
push:
branches: [ main ]
paths:
- 'src/htmx-1-compat/**'
- '.github/workflows/htmx-1-compat.yml'
pull_request:
branches: [ main ]
paths:
- 'src/htmx-1-compat/**'
- '.github/workflows/htmx-1-compat.yml'
workflow_dispatch:

jobs:
test_suite:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: npm ci
working-directory: ./src/htmx-1-compat
- run: npm test
working-directory: ./src/htmx-1-compat
28 changes: 28 additions & 0 deletions .github/workflows/include-vals.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Tests - include-vals

on:
push:
branches: [ main ]
paths:
- 'src/include-vals/**'
- '.github/workflows/include-vals.yml'
pull_request:
branches: [ main ]
paths:
- 'src/include-vals/**'
- '.github/workflows/include-vals.yml'
workflow_dispatch:

jobs:
test_suite:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: npm ci
working-directory: ./src/include-vals
- run: npm test
working-directory: ./src/include-vals
28 changes: 28 additions & 0 deletions .github/workflows/json-enc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Tests - json-enc

on:
push:
branches: [ main ]
paths:
- 'src/json-enc/**'
- '.github/workflows/json-enc.yml'
pull_request:
branches: [ main ]
paths:
- 'src/json-enc/**'
- '.github/workflows/json-enc.yml'
workflow_dispatch:

jobs:
test_suite:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: npm ci
working-directory: ./src/json-enc
- run: npm test
working-directory: ./src/json-enc
28 changes: 28 additions & 0 deletions .github/workflows/loading-states.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Tests - loading-states

on:
push:
branches: [ main ]
paths:
- 'src/loading-states/**'
- '.github/workflows/loading-states.yml'
pull_request:
branches: [ main ]
paths:
- 'src/loading-states/**'
- '.github/workflows/loading-states.yml'
workflow_dispatch:

jobs:
test_suite:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: npm ci
working-directory: ./src/loading-states
- run: npm test
working-directory: ./src/loading-states
28 changes: 28 additions & 0 deletions .github/workflows/method-override.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Tests - method-override

on:
push:
branches: [ main ]
paths:
- 'src/method-override/**'
- '.github/workflows/method-override.yml'
pull_request:
branches: [ main ]
paths:
- 'src/method-override/**'
- '.github/workflows/method-override.yml'
workflow_dispatch:

jobs:
test_suite:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: npm ci
working-directory: ./src/method-override
- run: npm test
working-directory: ./src/method-override
28 changes: 28 additions & 0 deletions .github/workflows/morphdom-swap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Tests - morphdom-swap

on:
push:
branches: [ main ]
paths:
- 'src/morphdom-swap/**'
- '.github/workflows/morphdom-swap.yml'
pull_request:
branches: [ main ]
paths:
- 'src/morphdom-swap/**'
- '.github/workflows/morphdom-swap.yml'
workflow_dispatch:

jobs:
test_suite:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: npm ci
working-directory: ./src/morphdom-swap
- run: npm test
working-directory: ./src/morphdom-swap
28 changes: 28 additions & 0 deletions .github/workflows/multi-swap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Tests - multi-swap

on:
push:
branches: [ main ]
paths:
- 'src/multi-swap/**'
- '.github/workflows/multi-swap.yml'
pull_request:
branches: [ main ]
paths:
- 'src/multi-swap/**'
- '.github/workflows/multi-swap.yml'
workflow_dispatch:

jobs:
test_suite:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: npm ci
working-directory: ./src/multi-swap
- run: npm test
working-directory: ./src/multi-swap
Loading

0 comments on commit 3dc8b44

Please sign in to comment.