Fix typo in README regarding project name #20
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 | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| packages: write | |
| jobs: | |
| backend: | |
| name: Backend check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Baixar código | |
| uses: actions/checkout@v4 | |
| - name: Configurar Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Instalar dependências do backend | |
| working-directory: backend | |
| run: | | |
| pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Validar importação da aplicação | |
| working-directory: backend | |
| run: | | |
| python -c "from app.main import app; print('Backend OK')" | |
| frontend: | |
| name: Frontend build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Baixar código | |
| uses: actions/checkout@v4 | |
| - name: Configurar Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| - name: Instalar dependências do frontend | |
| working-directory: frontend | |
| run: npm ci | |
| - name: Build do frontend | |
| working-directory: frontend | |
| run: npm run build | |
| docker: | |
| name: Docker build and push | |
| runs-on: ubuntu-latest | |
| needs: [backend, frontend] | |
| steps: | |
| - name: Baixar código | |
| uses: actions/checkout@v4 | |
| - name: Login no GHCR | |
| run: echo "${{ secrets.GHCR_TOKEN }}" | docker login ghcr.io -u matheus-tecdev --password-stdin | |
| - name: Build e push backend | |
| run: | | |
| docker build -t ghcr.io/matheus-tecdev/sentinel-backend:1.0.0 ./backend | |
| docker push ghcr.io/matheus-tecdev/sentinel-backend:1.0.0 | |
| - name: Build e push frontend | |
| run: | | |
| docker build -t ghcr.io/matheus-tecdev/sentinel-frontend:1.0.0 ./frontend | |
| docker push ghcr.io/matheus-tecdev/sentinel-frontend:1.0.0 | |
| - name: Validar docker-compose | |
| run: docker compose config |