|
3 | 3 | on: |
4 | 4 | push: |
5 | 5 | branches: |
6 | | - - 'main' |
7 | | - - 'develop' |
| 6 | + - "main" |
| 7 | + - "develop" |
8 | 8 | pull_request: |
9 | 9 |
|
10 | 10 | env: |
|
25 | 25 | ref: ${{ github.event_name == 'pull_request' && github.head_ref || github.ref }} |
26 | 26 | - uses: actions/setup-go@v5 |
27 | 27 | with: |
28 | | - go-version-file: 'go.mod' |
29 | | - - run: go install github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@v2.5.1 |
30 | | - - run: go install github.com/google/wire/cmd/wire@v0.7.0 |
| 28 | + go-version-file: "go.mod" |
| 29 | + - run: go install tool |
31 | 30 | - run: go generate ./openapi |
32 | 31 | - run: go generate -run "wire" ./... |
33 | 32 | - name: Auto-commit generated files |
|
60 | 59 | ref: ${{ github.event_name == 'pull_request' && github.head_ref || github.ref }} |
61 | 60 | - uses: actions/setup-go@v5 |
62 | 61 | with: |
63 | | - go-version-file: 'go.mod' |
| 62 | + go-version-file: "go.mod" |
64 | 63 | - run: go mod download |
65 | 64 | build: |
66 | 65 | name: Build |
|
72 | 71 | ref: ${{ github.event_name == 'pull_request' && github.head_ref || github.ref }} |
73 | 72 | - uses: actions/setup-go@v5 |
74 | 73 | with: |
75 | | - go-version-file: 'go.mod' |
| 74 | + go-version-file: "go.mod" |
76 | 75 | - run: go build -o anke-to |
77 | 76 | - uses: actions/upload-artifact@v4 |
78 | 77 | with: |
|
96 | 95 | ref: ${{ github.event_name == 'pull_request' && github.head_ref || github.ref }} |
97 | 96 | - uses: actions/setup-go@v5 |
98 | 97 | with: |
99 | | - go-version-file: 'go.mod' |
| 98 | + go-version-file: "go.mod" |
100 | 99 | - run: go install go.uber.org/mock/mockgen@v0.6.0 |
101 | 100 | - run: go generate ./model ./traq |
102 | 101 | - run: go test ./model -v -coverprofile=coverage-model.txt -race -vet=off |
@@ -146,7 +145,7 @@ jobs: |
146 | 145 | ref: ${{ github.event_name == 'pull_request' && github.head_ref || github.ref }} |
147 | 146 | - uses: actions/setup-go@v5 |
148 | 147 | with: |
149 | | - go-version-file: 'go.mod' |
| 148 | + go-version-file: "go.mod" |
150 | 149 | - run: go install go.uber.org/mock/mockgen@v0.6.0 |
151 | 150 | - run: go generate ./model ./traq |
152 | 151 | - name: golangci-lint |
|
0 commit comments