Finish login test & add github CI pipeline #1
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: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| name: Building | |
| 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 |