Browse Source

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 <zfcode@qq.com>
Co-authored-by: Xin.Zh <alexstocks@foxmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
master
Zonglei Dong GitHub 1 month ago
parent
commit
755f1def80
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 21 additions and 13 deletions
  1. +21
    -13
      .github/workflows/integrate-test.yml

+ 21
- 13
.github/workflows/integrate-test.yml View File

@@ -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
#
- 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

Loading…
Cancel
Save