From 6d7274ce31e74c3cf23bf4ad8e6ea3c3c52033a9 Mon Sep 17 00:00:00 2001 From: LordMathis Date: Sat, 26 Jul 2025 19:24:01 +0200 Subject: [PATCH] Add GitHub Actions workflow for running webui tests --- .github/workflows/webui_test.yaml | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/webui_test.yaml diff --git a/.github/workflows/webui_test.yaml b/.github/workflows/webui_test.yaml new file mode 100644 index 0000000..8eccfd3 --- /dev/null +++ b/.github/workflows/webui_test.yaml @@ -0,0 +1,32 @@ +name: Tests + +on: + push: + branches: [ main ] + paths: + - "webui/src/**" + - "webui/package.json" + - "webui/package-lock.json" + - ".github/workflows/webui_test.yaml" + pull_request: + branches: [ main ] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '22' + cache: 'npm' + cache-dependency-path: "./webui/package-lock.json" + + - name: Install dependencies + run: npm ci + + - name: Run tests + run: npm run test:run \ No newline at end of file