Skip to content

Commit

Permalink
Merge pull request #45 from TNG/add-github-workflow-for-tests
Browse files Browse the repository at this point in the history
chore(ci): add github workflow to execute unit tests
  • Loading branch information
alexzurbonsen authored Nov 16, 2024
2 parents 0d7ff62 + cf2349a commit 922e20b
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# SPDX-FileCopyrightText: 2024 Alexander zur Bonsen <[email protected]>
# SPDX-License-Identifier: Apache-2.0

name: Lint
run-name: Lint if-webpage-plugins

on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
cache: 'npm'
node-version: 22

- name: Install dependencies
run: npm install

- name: Run unit tests
run: npm run lint
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# SPDX-FileCopyrightText: 2024 Alexander zur Bonsen <[email protected]>
# SPDX-License-Identifier: Apache-2.0

name: Test
run-name: Unit tests of if-webpage-plugins

on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
cache: 'npm'
node-version: 22

- name: Install dependencies
run: npm install

- name: Run unit tests
run: npm test

0 comments on commit 922e20b

Please sign in to comment.