From 57b9d4cc894bd149070f70554f3ff0c0150be010 Mon Sep 17 00:00:00 2001 From: LordMathis Date: Thu, 29 May 2025 17:12:42 +0200 Subject: [PATCH] Add frontend tests workflow and update paths for Go and TypeScript workflows --- .github/workflows/frontend-tests.yml | 39 ++++++++++++++++++++++++++++ .github/workflows/go-test.yml | 2 ++ .github/workflows/typescript.yml | 2 ++ 3 files changed, 43 insertions(+) create mode 100644 .github/workflows/frontend-tests.yml diff --git a/.github/workflows/frontend-tests.yml b/.github/workflows/frontend-tests.yml new file mode 100644 index 0000000..2c8adba --- /dev/null +++ b/.github/workflows/frontend-tests.yml @@ -0,0 +1,39 @@ +name: Frontend Tests + +permissions: + contents: read + +on: + push: + branches: + - "*" + paths: + - "app/**" + pull_request: + branches: + - main + +jobs: + test: + name: Run Frontend Tests + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./app + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "22" + cache: "npm" + cache-dependency-path: "./app/package-lock.json" + + - name: Install dependencies + run: npm ci + + - name: Run Vitest tests + run: npm test diff --git a/.github/workflows/go-test.yml b/.github/workflows/go-test.yml index 9783498..b3e91a6 100644 --- a/.github/workflows/go-test.yml +++ b/.github/workflows/go-test.yml @@ -4,6 +4,8 @@ on: push: branches: - "*" + paths: + - "server/**" pull_request: branches: - main diff --git a/.github/workflows/typescript.yml b/.github/workflows/typescript.yml index 9ee6610..6064889 100644 --- a/.github/workflows/typescript.yml +++ b/.github/workflows/typescript.yml @@ -7,6 +7,8 @@ on: push: branches: - "*" + paths: + - "app/**" pull_request: branches: - main