We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent deae4c9 commit c95f6caCopy full SHA for c95f6ca
2 files changed
.github/workflows/build.yml
@@ -0,0 +1,30 @@
1
+name: Build
2
+
3
+on:
4
+ push:
5
+ branches: [ "main" ]
6
7
+jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+ - uses: actions/setup-go@v5
13
+ with:
14
+ go-version-file: "go.mod"
15
+ - name: Check formatting
16
+ run: |
17
+ gofmt -d .
18
+ go vet ./...
19
+ - name: Run tests
20
21
+ go test ./...
22
+ - name: Build
23
24
+ go build ./cmd/pi
25
+ - name: Save artifact
26
+ uses: actions/upload-artifact@v4
27
28
+ name: pi
29
+ path: pi
30
.github/workflows/test.yml
0 commit comments