From 6395537c29015f2342dde2e3bc67fe8e8741b924 Mon Sep 17 00:00:00 2001 From: Lucas Jensen Date: Wed, 26 Jun 2024 19:29:09 -0700 Subject: [PATCH] Fixed directories in yaml files --- .gitea/workflows/client.yaml | 12 +++++++++++- .gitea/workflows/server.yaml | 4 ++++ 2 files changed, 15 insertions(+), 1 deletion(-) 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 .