create separate steps with conditionals

This commit is contained in:
Severiano Badajoz
2020-04-01 17:30:03 -07:00
parent 305395bd62
commit fb33164a4d
+7 -2
View File
@@ -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