Run unit tests for if-webpage-plugins #118
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2024 Alexander zur Bonsen <alexander.zur.bonsen@tngtech.com> | |
# SPDX-License-Identifier: Apache-2.0 | |
name: Test | |
run-name: Run unit tests for if-webpage-plugins | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, reopened, synchronize] | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 # setting to 22.04 due to AppArmor restrictions that block Chromium on 24.04 | |
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 |