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