File tree Expand file tree Collapse file tree 4 files changed +60
-0
lines changed Expand file tree Collapse file tree 4 files changed +60
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : " build"
2
+
3
+ on :
4
+ push : # We run tests on non-tagged pushes to main
5
+ tags : ' '
6
+ branches : main
7
+ paths-ignore :
8
+ - ' **/*.md'
9
+ pull_request : # We also run tests on pull requests targeted at the main branch.
10
+ branches : main
11
+ paths-ignore :
12
+ - ' **/*.md'
13
+ # workflow_dispatch will let us manually trigger the workflow from GitHub actions dashboard.
14
+ # For example, you can try to build a branch without raising a pull request.
15
+ # See https://docs.github.com/en/free-pro-team@latest/actions/managing-workflow-runs/manually-running-a-workflow
16
+ workflow_dispatch :
17
+
18
+ jobs :
19
+ lint :
20
+ runs-on : ubuntu-22.04
21
+ strategy :
22
+ matrix :
23
+ go-version :
24
+ - " 1.22"
25
+ steps :
26
+ - uses : actions/checkout@v3
27
+ - uses : golangci/golangci-lint-action@v2
28
+ - run : make lint
29
+
30
+ test :
31
+ runs-on : ubuntu-22.04
32
+ strategy :
33
+ matrix :
34
+ go-version :
35
+ - " 1.22"
36
+ steps :
37
+ - uses : actions/checkout@v3
38
+ - uses : actions/setup-go@v4
39
+ with :
40
+ go-version : ${{ matrix.go-version }}
41
+ - run : make test
Original file line number Diff line number Diff line change
1
+ .PHONY : lint
2
+ lint :
3
+ golangci-lint run ./...
4
+
5
+ .PHONY : format
6
+ fmt :
7
+ go fmt ./...
8
+
9
+ .PHONY : test
10
+ test :
11
+ go test -v ./...
Original file line number Diff line number Diff line change
1
+ module golangchain
2
+
3
+ go 1.22.4
Original file line number Diff line number Diff line change
1
+ package main
2
+
3
+ func main () {
4
+ println ("aaa" )
5
+ }
You can’t perform that action at this time.
0 commit comments