mirror of
https://github.com/actions/cache.git
synced 2025-06-06 00:58:43 +00:00
Detect uncommitted changes to the dist/ folder (#302)
* Update workflow.yml * Update workflow.yml * Run build * Update workflow.yml * Update workflow.yml * Update workflow.yml
This commit is contained in:
11
.github/workflows/workflow.yml
vendored
11
.github/workflows/workflow.yml
vendored
@ -45,6 +45,17 @@ jobs:
|
||||
run: npm run lint
|
||||
- name: Build & Test
|
||||
run: npm run test
|
||||
- name: Ensure dist/ folder is up-to-date
|
||||
if: ${{ runner.os == 'Linux' }}
|
||||
shell: bash
|
||||
run: |
|
||||
npm run build
|
||||
if [ "$(git status --porcelain | wc -l)" -gt "0" ]; then
|
||||
echo "Detected uncommitted changes after build. See status below:"
|
||||
git diff
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
# End to end save and restore
|
||||
test-save:
|
||||
|
Reference in New Issue
Block a user