Skip to content

Commit

Permalink
chore: distinguish between k3s and k8s workflow (apecloud#5579)
Browse files Browse the repository at this point in the history
  • Loading branch information
JashBook authored Oct 23, 2023
1 parent 463b160 commit 766e8c0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cicd-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ jobs:
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.54.2
- name: make test ${{ matrix.ops }}
- name: make ${{ matrix.ops }}
if: ${{ ! contains(matrix.ops, '/') }}
run: |
make ${{ matrix.ops }}
- name: make ${{ matrix.ops }}
- name: make test ${{ matrix.ops }}
if: ${{ contains(matrix.ops, '/') }}
run: |
make test TEST_PACKAGES=./${{ matrix.ops }}/...
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/e2e-kbcli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ jobs:
e2e:
name: ${{ inputs.CLOUD_PROVIDER }}
needs: check
if: ${{ inputs.CLOUD_PROVIDER != 'k3s' }}
uses: apecloud/apecloud-cd/.github/workflows/kbcli-test-k8s.yml@main
with:
CLOUD_PROVIDER: "${{ inputs.CLOUD_PROVIDER }}"
Expand All @@ -100,3 +101,16 @@ jobs:
ARGS: "${{ inputs.ARGS }}"
TEST_TYPE: "${{ inputs.TEST_TYPE }}"
secrets: inherit

k3s:
needs: check
if: ${{ inputs.CLOUD_PROVIDER == 'k3s' }}
uses: apecloud/apecloud-cd/.github/workflows/kbcli-test-k3s.yml@main
with:
KB_VERSION: "${{ needs.check.outputs.release-version }}"
KB_PRE_VERSION: "${{ inputs.PRE_VERSION }}"
CLUSTER_VERSION: "${{ inputs.CLUSTER_VERSION }}"
BRANCH_NAME: "${{ inputs.BRANCH_NAME }}"
ARGS: "${{ inputs.ARGS }}"
TEST_TYPE: "${{ inputs.TEST_TYPE }}"
secrets: inherit
5 changes: 3 additions & 2 deletions .github/workflows/release-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,12 @@ jobs:
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.54.2
- name: make test ${{ matrix.ops }}
- name: make ${{ matrix.ops }}
if: ${{ ! contains(matrix.ops, '/') }}
run: |
make ${{ matrix.ops }}
- name: make ${{ matrix.ops }}
- name: make test ${{ matrix.ops }}
if: ${{ contains(matrix.ops, '/') }}
run: |
make test TEST_PACKAGES=./${{ matrix.ops }}/...
Expand Down

0 comments on commit 766e8c0

Please sign in to comment.