Skip to content

Commit

Permalink
ci: refactor propose id
Browse files Browse the repository at this point in the history
Signed-off-by: LingKa <[email protected]>
  • Loading branch information
LingKa28 committed Jan 16, 2024
1 parent 1a41657 commit e1f0bc2
Show file tree
Hide file tree
Showing 4 changed files with 9 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/[email protected]
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.

3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
[submodule "api/proto/xline-proto"]
path = api/proto/xline-proto
url = [email protected]:xline-kv/xline-proto.git
[submodule "mock-xline"]
path = mock-xline
url = https://github.com/xline-kv/mock-xline.git
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 e1f0bc2

Please sign in to comment.