mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-22 08:43:55 +08:00
Update workflow.yml
This commit is contained in:
parent
ce9276c90e
commit
5ba1e85d42
1 changed files with 9 additions and 0 deletions
9
.github/workflows/workflow.yml
vendored
9
.github/workflows/workflow.yml
vendored
|
@ -45,6 +45,15 @@ jobs:
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
- name: Build & Test
|
- name: Build & Test
|
||||||
run: npm run test
|
run: npm run test
|
||||||
|
- name: Ensure dist/ folder is up-to-date
|
||||||
|
run: |
|
||||||
|
npm run build
|
||||||
|
if [ "$(git status --porcelain | wc -l)" -gt "0" ]; then
|
||||||
|
echo "Detected uncommitted changes after build"
|
||||||
|
git status
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# End to end save and restore
|
# End to end save and restore
|
||||||
test-save:
|
test-save:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue