From b4bf4479154a04b768c0e33ac176ecdc515f3224 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Thu, 1 Feb 2024 15:02:32 +0000 Subject: [PATCH] feat/fix: Fix failing GitHub Actions in main.yml w --- workflows/main.yml | 48 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 workflows/main.yml diff --git a/workflows/main.yml b/workflows/main.yml new file mode 100644 index 00000000000..455acdc6fcc --- /dev/null +++ b/workflows/main.yml @@ -0,0 +1,48 @@ +name: Main Workflow + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up PostgreSQL + uses: timescale/setup-postgres@v1 + with: + postgres-version: 13 + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y build-essential + + - name: Build and test + run: | + make + make test + + - name: Deploy + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + run: | + echo "Deploying..." + # Add deployment steps here + + - name: Notify success + if: always() + run: | + echo "Workflow completed successfully" + + - name: Notify failure + if: failure() + run: | + echo "Workflow failed"