use if-syntax to run all steps

pull/9862/head
Simon Holthausen 3 years ago
parent 6fb68b7fd9
commit 4016570115

@ -54,6 +54,8 @@ jobs:
- name: type check - name: type check
run: pnpm check run: pnpm check
- name: lint - name: lint
if: (${{ success() }} || ${{ failure() }}) # ensures this step runs even if previous steps fail (avoids multiple runs uncovering different issues at different steps)
run: pnpm lint run: pnpm lint
- name: build and check generated types - name: build and check generated types
if: (${{ success() }} || ${{ failure() }}) # ensures this step runs even if previous steps fail
run: pnpm build && { [ "`git status --porcelain=v1`" == "" ] || (echo "Generated types have changed — please regenerate types locally and commit the changes after you have reviewed them"; git diff; exit 1); } run: pnpm build && { [ "`git status --porcelain=v1`" == "" ] || (echo "Generated types have changed — please regenerate types locally and commit the changes after you have reviewed them"; git diff; exit 1); }

Loading…
Cancel
Save