File tree Expand file tree Collapse file tree 2 files changed +69
-0
lines changed Expand file tree Collapse file tree 2 files changed +69
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will build a golang project
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
3
+
4
+ name : PAOSP Go CI
5
+
6
+ on :
7
+ push :
8
+ branches : [ "main" ]
9
+ pull_request :
10
+ branches : [ "main" ]
11
+
12
+ jobs :
13
+ build-and-test :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+
18
+ - name : Set up Go
19
+ uses : actions/setup-go@v4
20
+ with :
21
+ go-version : ' 1.24'
22
+
23
+ - name : Build
24
+ run : go build -v ./...
25
+
26
+ - name : Test
27
+ run : go test -v ./...
28
+
29
+ - name : Benchmark
30
+ run : |
31
+ go test -bench=. -benchmem -run=^$ ./... | tee bench.txt
32
+
33
+ - name : Upload benchmark results
34
+ uses : actions/upload-artifact@v4
35
+ with :
36
+ name : benchmark-results
37
+ path : bench.txt
Original file line number Diff line number Diff line change
1
+ # If you prefer the allow list template instead of the deny list, see community template:
2
+ # https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
3
+ #
4
+ # Binaries for programs and plugins
5
+ * .exe
6
+ * .exe~
7
+ * .dll
8
+ * .so
9
+ * .dylib
10
+ * .txt
11
+ # Test binary, built with `go test -c`
12
+ * .test
13
+
14
+ # Code coverage profiles and other test artifacts
15
+ * .out
16
+ coverage. *
17
+ * .coverprofile
18
+ profile.cov
19
+
20
+ # Dependency directories (remove the comment below to include it)
21
+ # vendor/
22
+
23
+ # Go workspace file
24
+ go.work
25
+ go.work.sum
26
+
27
+ # env file
28
+ .env
29
+
30
+ # Editor/IDE
31
+ # .idea/
32
+ # .vscode/
You can’t perform that action at this time.
0 commit comments