style: reformat CI workflow YAML for consistency

Remove trailing spaces and standardize step indentation using dashes in .github/workflows/ci.yml to improve readability and adhere to YAML best practices.

lemon-mint committed Nov 5, 2025 at 09:32 UTC 109e3cf5561b1bd2f420ebc6831e38f3b5e7cde7
1 file changed +99 -99
.github/workflows/ci.yml
+99 -99
@@ -2,7 +2,7 @@ name: CI
2
3 on:
4 pull_request:
5 - branches: [ main ]
5 + branches: [main]
6 push:
7 branches: "*"
8 workflow_dispatch:
@@ -11,113 +11,113 @@ jobs:
11 test:
12 name: Test
13 runs-on: ubuntu-latest
14 -
14 +
15 steps:
16 - - name: Checkout code
17 - uses: actions/checkout@v5
18 -
19 - - name: Set up Go
20 - uses: actions/setup-go@v6
21 - with:
22 - go-version: "stable"
23 - check-latest: true
24 -
25 - - name: Cache Go modules
26 - uses: actions/cache@v3
27 - with:
28 - path: |
29 - ~/.cache/go-build
30 - ~/go/pkg/mod
31 - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
32 - restore-keys: |
33 - ${{ runner.os }}-go-
34 -
35 - - name: Download dependencies
36 - run: go mod download
37 -
38 - - name: Install protobuf compiler
39 - run: |
40 - sudo apt-get update
41 - sudo apt-get install -y protobuf-compiler
42 -
43 - - name: Install protoc-gen-go and protoc-gen-go-vtproto
44 - run: |
45 - go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
46 - go install github.com/planetscale/vtprotobuf/cmd/protoc-gen-go-vtproto@latest
47 -
48 - - name: Generate protobuf files
49 - run: make build-protoc
50 -
51 - - name: Run tests
52 - run: go test -v -race -coverprofile=coverage.out ./...
53 -
54 - - name: Upload coverage to Codecov
55 - uses: codecov/codecov-action@v3
56 - with:
57 - file: ./coverage.out
58 - flags: unittests
59 - name: codecov-umbrella
60 -
16 + - name: Checkout code
17 + uses: actions/checkout@v5
18 +
19 + - name: Set up Go
20 + uses: actions/setup-go@v6
21 + with:
22 + go-version: "stable"
23 + check-latest: true
24 +
25 + - name: Cache Go modules
26 + uses: actions/cache@v3
27 + with:
28 + path: |
29 + ~/.cache/go-build
30 + ~/go/pkg/mod
31 + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
32 + restore-keys: |
33 + ${{ runner.os }}-go-
34 +
35 + - name: Download dependencies
36 + run: go mod download
37 +
38 + - name: Install protobuf compiler
39 + run: |
40 + sudo apt-get update
41 + sudo apt-get install -y protobuf-compiler
42 +
43 + - name: Install protoc-gen-go and protoc-gen-go-vtproto
44 + run: |
45 + go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
46 + go install github.com/planetscale/vtprotobuf/cmd/protoc-gen-go-vtproto@latest
47 +
48 + - name: Generate protobuf files
49 + run: make build-protoc
50 +
51 + - name: Run tests
52 + run: go test -v -race -coverprofile=coverage.out ./...
53 +
54 + - name: Upload coverage to Codecov
55 + uses: codecov/codecov-action@v3
56 + with:
57 + file: ./coverage.out
58 + flags: unittests
59 + name: codecov-umbrella
60 +
61 build:
62 name: Build
63 runs-on: ubuntu-latest
64 needs: test
65 -
65 +
66 steps:
67 - - name: Checkout code
68 - uses: actions/checkout@v5
69 -
70 - - name: Set up Go
71 - uses: actions/setup-go@v6
72 - with:
73 - go-version: "stable"
74 - check-latest: true
75 -
76 - - name: Cache Go modules
77 - uses: actions/cache@v3
78 - with:
79 - path: |
80 - ~/.cache/go-build
81 - ~/go/pkg/mod
82 - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
83 - restore-keys: |
84 - ${{ runner.os }}-go-
85 -
86 - - name: Download dependencies
87 - run: go mod download
88 -
89 - - name: Install build dependencies
90 - run: |
91 - sudo apt-get update
92 - sudo apt-get install -y protobuf-compiler binaryen
93 -
94 - - name: Install protoc-gen-go and protoc-gen-go-vtproto
95 - run: |
96 - go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
97 - go install github.com/planetscale/vtprotobuf/cmd/protoc-gen-go-vtproto@latest
98 -
99 - - name: Build all components
100 - run: make build
101 -
102 - - name: Build Docker image
103 - run: |
104 - docker build -t relaydns:test .
105 -
67 + - name: Checkout code
68 + uses: actions/checkout@v5
69 +
70 + - name: Set up Go
71 + uses: actions/setup-go@v6
72 + with:
73 + go-version: "stable"
74 + check-latest: true
75 +
76 + - name: Cache Go modules
77 + uses: actions/cache@v3
78 + with:
79 + path: |
80 + ~/.cache/go-build
81 + ~/go/pkg/mod
82 + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
83 + restore-keys: |
84 + ${{ runner.os }}-go-
85 +
86 + - name: Download dependencies
87 + run: go mod download
88 +
89 + - name: Install build dependencies
90 + run: |
91 + sudo apt-get update
92 + sudo apt-get install -y protobuf-compiler binaryen
93 +
94 + - name: Install protoc-gen-go and protoc-gen-go-vtproto
95 + run: |
96 + go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
97 + go install github.com/planetscale/vtprotobuf/cmd/protoc-gen-go-vtproto@latest
98 +
99 + - name: Build all components
100 + run: make build
101 +
102 + - name: Build Docker image
103 + run: |
104 + docker build -t relaydns:test .
105 +
106 lint:
107 name: Lint
108 runs-on: ubuntu-latest
109 -
109 +
110 steps:
111 - - name: Checkout code
112 - uses: actions/checkout@v5
113 -
114 - - name: Set up Go
115 - uses: actions/setup-go@v6
116 - with:
117 - go-version: "stable"
118 - check-latest: true
119 -
120 - - name: golangci-lint
111 + - name: Checkout code
112 + uses: actions/checkout@v5
113 +
114 + - name: Set up Go
115 + uses: actions/setup-go@v6
116 + with:
117 + go-version: "stable"
118 + check-latest: true
119 +
120 + - name: golangci-lint
121 uses: golangci/golangci-lint-action@v8
122 with:
123 - version: v2.6.0
\ No newline at end of file
123 + version: v2.6.0