mirror of
https://github.com/threeal/cmake-action.git
synced 2025-04-20 02:31:20 +00:00
ci: fix build diff check in workflow (#402)
* ci: check Git diff in separate steps * ci: use `git diff-index` to assert diff
This commit is contained in:
parent
44a0a4c6c2
commit
7fb9ce0cbe
7
.github/workflows/build.yaml
vendored
7
.github/workflows/build.yaml
vendored
@ -23,6 +23,7 @@ jobs:
|
|||||||
version: stable
|
version: stable
|
||||||
|
|
||||||
- name: Build Package
|
- name: Build Package
|
||||||
run: |
|
run: yarn build
|
||||||
yarn build
|
|
||||||
git diff --exit-code HEAD
|
- name: Check Diff
|
||||||
|
run: git diff && git diff-index --quiet --exit-code HEAD
|
||||||
|
7
.github/workflows/check.yaml
vendored
7
.github/workflows/check.yaml
vendored
@ -23,9 +23,10 @@ jobs:
|
|||||||
version: stable
|
version: stable
|
||||||
|
|
||||||
- name: Check Formatting
|
- name: Check Formatting
|
||||||
run: |
|
run: yarn format
|
||||||
yarn format
|
|
||||||
git diff --exit-code HEAD
|
- name: Check Diff
|
||||||
|
run: git diff && git diff-index --quiet --exit-code HEAD
|
||||||
|
|
||||||
- name: Check Lint
|
- name: Check Lint
|
||||||
run: yarn lint
|
run: yarn lint
|
||||||
|
Loading…
Reference in New Issue
Block a user