Skip to content

Commit

Permalink
chore: test cloud on k3s
Browse files Browse the repository at this point in the history
  • Loading branch information
JashBook committed Nov 21, 2023
1 parent b4d0692 commit 442b2c2
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions .github/workflows/test-cloud-k3s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,28 @@ permissions:
jobs:
apecloud-test-k3s:
name: test ${{ inputs.test-type-name }}
# runs-on: ubuntu-latest
runs-on: [ self-hosted, k3d-runner ]
runs-on: ubuntu-latest
# runs-on: [ self-hosted, k3d-runner ]
outputs:
kubeblocks-result: ${{ steps.install_kubeblocks.outputs.kubeblocks-result }}
postgresql-result: ${{ steps.create_postgresql.outputs.postgresql-result }}
steps:
- name: Setup Go
if: inputs.GO_VERSION
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}

- name: Setup kubectl
uses: azure/setup-kubectl@v3
with:
version: "v1.28.3"

- name: Install Helm
uses: azure/setup-helm@v3
with:
version: ${{ env.HELM_VERSION }}

- name: checkout testinfra
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -162,11 +178,12 @@ jobs:
while IFS='=' read -r name value
do
if [[ ! $name =~ ^\# && -n $name ]]; then
export $name="$value"
export $name=$value
fi
done < ./cn.env
echo "DSN:"$DSN
make run
make run &
sleep 60
- name: Checkout e2etest Code
uses: actions/checkout@v4
Expand Down

0 comments on commit 442b2c2

Please sign in to comment.