Skip to content

Commit

Permalink
ci: adjust format tool & remove proto generate
Browse files Browse the repository at this point in the history
Signed-off-by: LingKa <cnfty786@gmail.com>
  • Loading branch information
LingKa28 committed Jan 11, 2024
1 parent c1fb0e4 commit f682a08
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 40 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,11 @@ jobs:
with:
go-version: ${{env.GO_VERSION}}

- name: Check format
run: |
output="$(gofmt -l .)"
if [ ${#output} -gt 0 ]; then
echo "gofmt fail"
exit 1
fi
shell: bash
- name: Format code
uses: iamnotaturtle/auto-gofmt@v2.1.0
with:
# This part is also where you can pass other options, for example:
only_changed: True

lint:
name: Lint Check
Expand All @@ -43,9 +40,6 @@ jobs:
with:
go-version: ${{env.GO_VERSION}}

- name: Generate API
uses: ./.github/workflows/protobuf

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
Expand All @@ -64,9 +58,6 @@ jobs:
with:
go-version: ${{env.GO_VERSION}}

- name: Generate API
uses: ./.github/workflows/protobuf

- name: Start the cluster
run: ./scripts/quick_start.sh

Expand Down
25 changes: 0 additions & 25 deletions .github/workflows/protobuf/action.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion scripts/quick_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ stop_all() {
run_container() {
echo container starting
size=${1}
image="ghcr.io/xline-kv/xline:v0.6.0"
image="ghcr.io/xline-kv/xline:v0.6.1"
for ((i = 1; i <= ${size}; i++)); do
docker run -d -it --rm --name=node${i} --net=xline_net --ip=${SERVERS[$i]} --cap-add=NET_ADMIN --cpu-shares=1024 -m=512M -v ${DIR}:/mnt ${image} bash &
done
Expand Down

0 comments on commit f682a08

Please sign in to comment.