Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
AsterDY committed Aug 11, 2024
1 parent 6c62f1b commit 5f0718e
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 11 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/develop-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ jobs:
- uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Install Docker Compose
run: |
sudo curl -L "https://github.com/docker/compose/releases/download/$(curl -s https://api.github.com/repos/docker/compose/releases/latest | jq -r .tag_name)/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
- name: Set up Go
uses: actions/setup-go@v2
Expand All @@ -31,10 +37,25 @@ jobs:
sh ./go_latest.sh go1.23
continue-on-error: true

- name: run on specific version kitex
- name: update specific version kitex
run: |
PWD=$(pwd)
export GOROOT=$PWD/go1.23
export PATH=$GOROOT/bin:$PATH
go version
./update_kitex.sh 0bc4a44e9521a73914965c8c3b236e100edd1a95 ./go1.23
- name: Run test.sh
run: |
PWD=$(pwd)
export GOROOT=$PWD/go1.23
export PATH=$GOROOT/bin:$PATH
go version
find . -name test.sh -print0 | while IFS= read -r -d '' script; do
script_dir=$(dirname "$script")
if [ "$script_dir" == "go1.23" ]; then
continue
fi
chmod +x "$script"
(cd "$script_dir" && bash "./$(basename "$script")")
done
8 changes: 7 additions & 1 deletion .github/workflows/push-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ jobs:
run: go test -v -race -covermode=atomic -coverprofile=coverage.out ./...

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Install Docker Compose
run: |
sudo curl -L "https://github.com/docker/compose/releases/download/$(curl -s https://api.github.com/repos/docker/compose/releases/latest | jq -r .tag_name)/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
- name: Run test.sh
run: |
Expand Down
16 changes: 8 additions & 8 deletions update_kitex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ find . -name go.mod -print0 | while IFS= read -r -d '' script; do
cd "$pwd"
done

find . -name test.sh -print0 | while IFS= read -r -d '' script; do
script_dir=$(dirname "$script")
if [ "$script_dir" == "$exclude" ]; then
continue
fi
chmod +x "$script"
(cd "$script_dir" && bash "./$(basename "$script")")
done
# find . -name test.sh -print0 | while IFS= read -r -d '' script; do
# script_dir=$(dirname "$script")
# if [ "$script_dir" == "$exclude" ]; then
# continue
# fi
# chmod +x "$script"
# (cd "$script_dir" && bash "./$(basename "$script")")
# done

0 comments on commit 5f0718e

Please sign in to comment.