diff --git a/.gitea/workflows/client.yaml b/.gitea/workflows/client.yaml index a7ec504..01ee051 100644 --- a/.gitea/workflows/client.yaml +++ b/.gitea/workflows/client.yaml @@ -1,6 +1,8 @@ name: build app on: + push: + branches: ["main"] pull_request: branches: ["main"] @@ -20,6 +22,14 @@ jobs: with: node-version: ${{ matrix.node-version }} - - name: Build + - name: Lint + working-directory: client run: | npm install + npm run prettier:check + + - name: Build + working-directory: client + run: | + npm install + npm run build \ No newline at end of file diff --git a/.gitea/workflows/server.yaml b/.gitea/workflows/server.yaml index 4aea603..9c6fd3f 100644 --- a/.gitea/workflows/server.yaml +++ b/.gitea/workflows/server.yaml @@ -1,6 +1,8 @@ name: Portfolio Backend CI on: + push: + branches: ["main"] pull_request: branches: ["main"] @@ -16,10 +18,12 @@ jobs: python-version: "3.11" - name: Install dependencies + working-directory: server run: | python -m pip install --upgrade pip pip install pytest pip install -r requirements.txt - name: Lint with black + working-directory: server run: | black --check .