Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/app-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,27 @@ jobs:
files: coverage/clover.xml
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}

JavaScript:
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend

strategy:
matrix:
node-version: [20]

steps:
- uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

- name: Run frontend tests
run: npm test -- --run
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ help:
@echo " make update-composer-dependencies Update composer packages"
@echo " make update-npm-dependencies Update npm packages"
@echo "\n🧪 Testing & Quality:"
@echo " make test Run backend tests"
@echo " make test Run backend and frontend tests"
@echo " make quality Run quality checks"
@echo " make phpstan Run static code analysis"
@echo " make style Fix code style"
Expand Down Expand Up @@ -120,12 +120,17 @@ code-style:
@echo "💄 Fixing code style..."
docker compose exec -it app vendor/bin/php-cs-fixer fix

test: test-backend
test: test-backend test-frontend

backend-test: test-backend
test-backend:
@echo "🧪 Running backend tests..."
docker compose exec -it app bin/phpunit

frontend-test: test-frontend
test-frontend:
@echo "🧪 Running frontend tests..."
docker compose exec -it npm-dev npm test -- --run

arch:
@echo "🏛️ Testing architecture..."
Expand Down
205 changes: 202 additions & 3 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading