File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Go Build
2+ run-name : ${{ github.actor }} runs build
3+ on :
4+ push :
5+ branches :
6+ - master
7+ - github-actions-testing
8+ pull_request :
9+ branches :
10+ - master
11+ jobs :
12+ build-k8s-athenz-syncer :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - run : echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
16+ - run : echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
17+ - name : Setup Go 1.22.x
18+ uses : actions/setup-go@v5
19+ with :
20+ # Semantic version range syntax or exact version of Go
21+ go-version : ' 1.22.x'
22+ - name : Check out repository code
23+ uses : actions/checkout@v4
24+ - run : echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
25+ - name : List files in the repository
26+ run : |
27+ ls ${{ github.workspace }}
28+ - name : Run tests
29+ run : go test -v -race ./...
30+ - name : Print diff
31+ run : diff -u <(echo -n) <(gofmt -d .) || true
32+ - name : Go vet
33+ run : go vet ./...
34+ - name : Go build
35+ run : go build -v -race ./...
36+ - run : echo "🍏 This job's status is ${{ job.status }}."
You can’t perform that action at this time.
0 commit comments