From fb33164a4d1a70fdb9247f99e5b0869ef12980ee Mon Sep 17 00:00:00 2001 From: Severiano Badajoz Date: Wed, 1 Apr 2020 17:30:03 -0700 Subject: [PATCH] create separate steps with conditionals --- .github/workflows/push_tests.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push_tests.yml b/.github/workflows/push_tests.yml index c032dbee..a9958805 100644 --- a/.github/workflows/push_tests.yml +++ b/.github/workflows/push_tests.yml @@ -28,9 +28,14 @@ jobs: run: | pip install flake8 make lint - - name: Lint with eslint + - name: Lint all with eslint + if: github.ref == 'refs/heads/master' run: | - if("$GITHUB_REF" == "refs/heads/master") then make lint-client; else make lint-diff-client; fi + make lint-client + - name: Lint diff with eslint + if: github.ref != 'refs/heads/master' + run: | + make lint-diff-client unit-test: runs-on: ubuntu-latest