upd theming #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy Backend | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "backend/**" | |
| - "frontend/**" | |
| jobs: | |
| test-backend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Build and test backend | |
| working-directory: ./backend | |
| run: | | |
| docker build --target test -t backend-test . | |
| docker run backend-test | |
| test-frontend: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./frontend | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Use Node.js 18.x | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 18.x | |
| cache: "npm" | |
| cache-dependency-path: "./frontend/package-lock.json" | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build | |
| run: npm run build |