File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change
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"
You can’t perform that action at this time.
0 commit comments