tests: add frontend tests
This commit is contained in:
23
.github/workflows/main.yaml
vendored
23
.github/workflows/main.yaml
vendored
@@ -11,8 +11,25 @@ permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Run tests
|
||||
test_frontend:
|
||||
name: Run Frontend tests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: frontend/spa
|
||||
run: bun install
|
||||
|
||||
- name: Run tests
|
||||
working-directory: frontend/spa
|
||||
env:
|
||||
APP_ENV: testing
|
||||
run: bun run test
|
||||
|
||||
test_backend:
|
||||
name: Run Backend tests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -60,7 +77,7 @@ jobs:
|
||||
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [ test, module-build ]
|
||||
needs: [ test_frontend, test_backend, module-build ]
|
||||
if: github.ref == 'refs/heads/master'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
Reference in New Issue
Block a user