File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Ptr CI
2+
3+ on :
4+ push :
5+ branches :
6+ - ' main'
7+ tags :
8+ - ' v*'
9+ pull_request :
10+ branches :
11+ - ' *'
12+
13+ permissions :
14+ contents : read
15+
16+ jobs :
17+ check :
18+ name : Check
19+ runs-on : ubuntu-latest
20+ steps :
21+ - name : Set up Go 1.24.x
22+ uses : actions/setup-go@v6
23+ with :
24+ go-version : 1.24.x
25+ cache-dependency-path : go.sum
26+
27+ - name : Checkout Code
28+ uses : actions/checkout@v5
29+
30+ - name : go-fmt
31+ run : |
32+ if [ -n "$(gofmt -s -l .)" ]; then
33+ echo "Go code is not formatted, run 'gofmt -s -w .'"
34+ exit 1
35+ fi
36+
37+ - name : go-vet
38+ run : go vet ./...
39+
40+ test :
41+ name : Test
42+ needs : check
43+ runs-on : ubuntu-latest
44+ steps :
45+ - name : Checkout Code
46+ uses : actions/checkout@v5
47+
48+ - name : Set up Go 1.24.x
49+ uses : actions/setup-go@v6
50+ with :
51+ go-version : 1.24.x
52+ cache-dependency-path : go.sum
53+
54+ - name : Test Keycloak
55+ run : go test -race -v -coverprofile=coverage.txt ./...
56+
57+ - name : Upload results to Codecov
58+ uses : codecov/codecov-action@v5
59+ with :
60+ token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change 1+ # Binaries for programs and plugins
2+ * .exe
3+ * .exe~
4+ * .dll
5+ * .so
6+ * .dylib
7+
8+ # Test binary, built with `go test -c`
9+ * .test
10+
11+ # Output of the go coverage tool
12+ * .out
13+ coverage.txt
14+ coverage.html
15+
16+ # Dependency directories
17+ vendor /
18+
19+ # Go workspace file
20+ go.work
21+
22+ # IDEs
23+ .idea /
24+ .vscode /
25+ * .swp
26+ * .swo
27+ * ~
28+
29+ # OS files
30+ .DS_Store
31+ Thumbs.db
32+
You can’t perform that action at this time.
0 commit comments