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
|
||||
|
||||
- name: Build Package
|
||||
run: |
|
||||
yarn build
|
||||
git diff --exit-code HEAD
|
||||
run: yarn build
|
||||
|
||||
- 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
|
||||
|
||||
- name: Check Formatting
|
||||
run: |
|
||||
yarn format
|
||||
git diff --exit-code HEAD
|
||||
run: yarn format
|
||||
|
||||
- name: Check Diff
|
||||
run: git diff && git diff-index --quiet --exit-code HEAD
|
||||
|
||||
- name: Check Lint
|
||||
run: yarn lint
|
||||
|
Loading…
Reference in New Issue
Block a user