Skip to content

Commit 3a0765c

Browse files
committed
(CI): add conditions on jobs
1 parent b1f9397 commit 3a0765c

File tree

4 files changed

+8
-25
lines changed

4 files changed

+8
-25
lines changed

.github/workflows/ci-develop-next-main.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@ on:
77
- template/**/*
88

99
jobs:
10-
run_ci:
11-
name: Install dependencies, lint and test
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v2
15-
- uses: ./.github/workflows/w-install-dependencies.yml
16-
- uses: ./.github/workflows/w-run-linters.yml
17-
- uses: ./.github/workflows/w-run-tests.yml
10+
run_lint:
11+
uses: ./.github/workflows/w-run-linters.yml
12+
run_test:
13+
if: ${{ success() }}
14+
uses: ./.github/workflows/w-run-tests.yml
15+
needs: [ run_lint ]

.github/workflows/ci-feature.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/w-run-linters.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v2
10+
- uses: ./.github/workflows/w-install-dependencies.yml
1011
- name: Run linters
1112
run: |
1213
cd template

.github/workflows/w-run-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v2
10+
- uses: ./.github/workflows/w-install-dependencies.yml
1011
- name: Run tests
1112
run: |
1213
cd template

0 commit comments

Comments
 (0)