We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 655d222 commit 7c39d02Copy full SHA for 7c39d02
.github/workflows/deploy.yaml
@@ -0,0 +1,43 @@
1
+name: Build CI/CD
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
8
+jobs:
9
+ test:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout code
13
+ uses: actions/checkout@v4
14
15
+ - name: Set up Go
16
+ uses: actions/setup-go@v5
17
+ with:
18
+ go-version: '1.22'
19
20
+ - name: Install dependencies
21
+ run: go mod download
22
23
+ - name: Run tests
24
+ run: go test ./...
25
26
+ compile:
27
28
+ needs: test
29
+ if: success()
30
31
32
33
34
35
36
37
38
39
40
41
42
+ - name: Compile binary
43
+ run: go build -o myapp
0 commit comments