Skip to content

Commit b4bf447

Browse files
feat/fix: Fix failing GitHub Actions in main.yml w
1 parent b2bb9eb commit b4bf447

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

workflows/main.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Main Workflow
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v2
18+
19+
- name: Set up PostgreSQL
20+
uses: timescale/setup-postgres@v1
21+
with:
22+
postgres-version: 13
23+
24+
- name: Install dependencies
25+
run: |
26+
sudo apt-get update
27+
sudo apt-get install -y build-essential
28+
29+
- name: Build and test
30+
run: |
31+
make
32+
make test
33+
34+
- name: Deploy
35+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
36+
run: |
37+
echo "Deploying..."
38+
# Add deployment steps here
39+
40+
- name: Notify success
41+
if: always()
42+
run: |
43+
echo "Workflow completed successfully"
44+
45+
- name: Notify failure
46+
if: failure()
47+
run: |
48+
echo "Workflow failed"

0 commit comments

Comments
 (0)