Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Commit

Permalink
Merge branch 'release-2.0' into cherry-pick-1709-to-release-2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lichunzhu authored Jun 10, 2021
2 parents d1a2ebd + 94ed25d commit 401d12d
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/chaos-mesh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
jobs:
pre_job:
runs-on: ubuntu-18.04
timeout-minutes: 30
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
Expand All @@ -33,6 +34,7 @@ jobs:
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
# The type of runner that the job will run on
runs-on: ubuntu-18.04
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
Expand All @@ -47,29 +49,29 @@ jobs:
go-version: 1.13
- name: Print Go version
run: go version

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Check out code
uses: actions/checkout@v2

- name: Cache go modules
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-dm-${{ hashFiles('**/go.sum') }}

- name: Cache tools
uses: actions/cache@v2
with:
path: |
**/tools
key: ${{ runner.os }}-dm-tools-${{ hashFiles('**/tools/go.sum') }}

# Set up Kubernetes IN Docker
# - name: Set up kind cluster
# - name: Set up kind cluster
# uses: helm/kind-action@v1.0.0
# with:
# cluster_name: dm-chaos
# cluster_name: dm-chaos
# Set up Kubernetes with K3s
- name: Set up K3s cluster
run: |
Expand Down Expand Up @@ -101,7 +103,7 @@ jobs:
kubectl get pods -n kube-system
kubectl get sc
kubectl version
# Disable AppArmor for MySQL, see https://github.com/moby/moby/issues/7512#issuecomment-61787845
- name: Disable AppArmor for MySQL
run: |
Expand Down Expand Up @@ -268,6 +270,7 @@ jobs:
uses: chaos-mesh/chaos-mesh-action@master
env:
CFG_BASE64: ${{ env.CFG_BASE64 }}
CHAOS_MESH_VERSION: v1.0.0

# check whether complete with 1m * 20 times.
- name: Wait for chaos test case complete
Expand All @@ -290,7 +293,7 @@ jobs:
name: chaos-base-logs.${{ matrix.chaos-obj }}
path: |
./logs
!./logs/coredns-*
!./logs/coredns-*
!./logs/local-path-provisioner-*
# send Slack notify if failed.
Expand Down

0 comments on commit 401d12d

Please sign in to comment.