Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AsterDY committed Aug 11, 2024
1 parent ab2615c commit 8a54fed
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/develop-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Go Latest Linux-X64
name: kitex version tests

on: push

Expand All @@ -11,6 +11,9 @@ jobs:

- uses: actions/checkout@v2

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

- name: Set up Go
uses: actions/setup-go@v2
with:
Expand All @@ -24,17 +27,17 @@ jobs:
${{ runner.os }}-go-
- name: build go image
run: ./go_latest.sh go1.23
run: |
./go_latest.sh go1.23
PWD=$(pwd)
export GOROOT=$PWD/go1.23
export PATH=$GOROOT/bin:$PATH
go version
continue-on-error: true

- name: update kitex
run: ./update_kitext.sh 0bc4a44e9521a73914965c8c3b236e100edd1a95
- name: run on specific version kitex
run: |
go version
./update_kitext.sh 0bc4a44e9521a73914965c8c3b236e100edd1a95
- name: run tests
runt: |
find . -name test.sh -print0 | while IFS= read -r -d '' script; do
script_dir=$(dirname "$script")
chmod +x "$script"
(cd "$script_dir" && bash "./$(basename "$script")")
done
5 changes: 5 additions & 0 deletions update_kitex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ 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")
chmod +x "$script"
(cd "$script_dir" && bash "./$(basename "$script")")
done

0 comments on commit 8a54fed

Please sign in to comment.