From 755f1def80b9db7d9ff32de6c3fa0e6795b0ec4b Mon Sep 17 00:00:00 2001 From: Zonglei Dong Date: Sat, 16 Aug 2025 19:55:27 +0800 Subject: [PATCH] fix: re-enabled integration test action (#835) * fix: re-enabled integration test action * fix: install docker composer * fix: upgrade go version * fix: upgrade go version * fix: upgrade go version * fix: upgrade go version * fix: upgrade go version * Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: FengZhang Co-authored-by: Xin.Zh Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/integrate-test.yml | 34 +++++++++++++++++----------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/.github/workflows/integrate-test.yml b/.github/workflows/integrate-test.yml index 7fbdec23..b5016580 100644 --- a/.github/workflows/integrate-test.yml +++ b/.github/workflows/integrate-test.yml @@ -37,14 +37,14 @@ jobs: strategy: matrix: golang: - - 1.18 + - 1.20 steps: - name: "set up go" uses: actions/setup-go@v3 with: - go-version: 1.18 + go-version: 1.20.0 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - name: "checkout ${{ github.ref }}" @@ -61,15 +61,23 @@ jobs: restore-keys: | ${{ runner.os }}-go- + - name: Set up Docker + uses: docker/setup-buildx-action@v2 + + - name: Install Docker Compose + run: | + curl -L "https://github.com/docker/compose/releases/download/v2.23.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose + chmod +x /usr/local/bin/docker-compose + docker-compose --version + # This step only runs when the event type is a pull_request -# - name: Integrate Test -# if: ${{ github.event_name == 'pull_request' }} -# run: | -# chmod +x integrate_test.sh && [[ -n "${{github.event.pull_request.head.repo.full_name}}" ]] && [[ -n "${{github.event.pull_request.head.sha}}" ]] && [[ -n "${{github.base_ref}}" ]] && ./integrate_test.sh ${{github.event.pull_request.head.repo.full_name}} ${{github.event.pull_request.head.sha}} ${{github.base_ref}} -# -# # This step only runs when the event type is a push -# - name: Integrate Test -# if: ${{ github.event_name == 'push' }} -# run: | -# chmod +x integrate_test.sh && ./integrate_test.sh $GITHUB_REPOSITORY $GITHUB_SHA $GITHUB_BASE_REF -# \ No newline at end of file + - name: Integrate Test + if: ${{ github.event_name == 'pull_request' }} + run: | + chmod +x integrate_test.sh && [[ -n "${{github.event.pull_request.head.repo.full_name}}" ]] && [[ -n "${{github.event.pull_request.head.sha}}" ]] && [[ -n "${{github.base_ref}}" ]] && ./integrate_test.sh ${{github.event.pull_request.head.repo.full_name}} ${{github.event.pull_request.head.sha}} ${{github.base_ref}} + + # This step only runs when the event type is a push + - name: Integrate Test + if: ${{ github.event_name == 'push' }} + run: | + chmod +x integrate_test.sh && ./integrate_test.sh $GITHUB_REPOSITORY $GITHUB_SHA $GITHUB_BASE_REF