Add nginx config #14
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: CI Pipeline | |
| on: | |
| push: | |
| branches: | |
| - staging | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| inputs: | |
| branch_name: | |
| description: "Branch to run tests" | |
| required: true | |
| default: "staging" | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| name: Building and Testing | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Create NodeJS env | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.x | |
| - name: Install packages | |
| run: npm ci && npm ci --prefix frontend && npm ci --prefix backend | |
| - name: Run tests | |
| run: npm test |