message: ci: add jobs dependencies in ci.yaml
diff: @@ -37,6 +37,7 @@ jobs:
  if-simple-tests-enabled:
  name: Check If Simple Tests is Enabled
  + needs: if-workflow-is-required
  if: |
  contains(github.event_name, 'pull_request')
  || contains('refs/heads/master,
  @@ -45,12 +46,12 @@ jobs:
  refs/heads/staging2', github.ref)
  || contains(github.event.head_commit.message, 'enable self-hosted ci')
  runs-on: ubuntu-latest
  - needs: if-workflow-is-required
  steps:
  - name: Succeeded
  run: exit 0
  UnitTest:
  + needs: if-simple-tests-enabled
  runs-on: ${{ matrix.os }}
  strategy:
  matrix:
  @@ -68,6 +69,7 @@ jobs:
  run: ${{ matrix.script_run }}
  Integration_Test:
  + needs: if-simple-tests-enabled
  runs-on: ${{ matrix.os }}
  strategy:
  matrix:
  @@ -96,6 +98,7 @@ jobs:
  BUILD_BUILDID: ${{ github.run_id }}
  Benchmarks_Test:
  + needs: if-simple-tests-enabled
  runs-on: ${{ matrix.os }}
  strategy:
  matrix:
  @@ -107,11 +110,11 @@ jobs:
  make bench-test
  Linters:
  + needs: if-simple-tests-enabled
  runs-on: ${{ matrix.os }}
  strategy:
  matrix:
  os: [Linux, macOS]
  - needs: if-simple-tests-enabled
  steps:
  - uses: actions/checkout@v2
  - name: Linters
  @@ -123,8 +126,8 @@ jobs:
  git diff --exit-code Cargo.lock
  Quick_Check:
  - runs-on: ubuntu-latest
  needs: if-simple-tests-enabled
  + runs-on: ubuntu-latest
  steps:
  - uses: actions/checkout@v2
  - name: Quick_Check
  @@ -136,8 +139,8 @@ jobs:
  devtools/ci/check-cyclic-dependencies.py
  WASM_build:
  - runs-on: ubuntu-latest
  needs: if-simple-tests-enabled
  + runs-on: ubuntu-latest
  steps:
  - uses: actions/checkout@v2
  - name: WASM build
  @@ -146,8 +149,8 @@ jobs:
  make wasm-build-test
  Security_Audit_Licenses:
  - runs-on: ubuntu-latest
  needs: if-simple-tests-enabled
  + runs-on: ubuntu-latest
  steps:
  - uses: actions/checkout@v2
  - name: Security Audit & Licenses
  