mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-08 10:08:12 +08:00
create separate steps with conditionals
This commit is contained in:
@@ -28,9 +28,14 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
pip install flake8
|
pip install flake8
|
||||||
make lint
|
make lint
|
||||||
- name: Lint with eslint
|
- name: Lint all with eslint
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
run: |
|
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:
|
unit-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Reference in New Issue
Block a user