Skip to content

Commit 5ff0bde

Browse files
authored
Merge pull request #239 from aminya/validate-dist [skip test]
2 parents c930e9c + a2421ff commit 5ff0bde

File tree

13 files changed

+27
-17
lines changed

13 files changed

+27
-17
lines changed

.github/workflows/CI.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
tags:
1010
- "*"
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.head_ref }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
Build:
1418
runs-on: ubuntu-22.04
@@ -32,8 +36,6 @@ jobs:
3236
path: |
3337
~/.pnpm-store
3438
D:\.pnpm-store
35-
./node_modules
36-
./.parcel-cache
3739
key: "setupcpp-cache-OS:${{ matrix.os }}-node:${{ matrix.node }}-pnpm:${{ matrix.pnpm }}-${{ hashFiles('./.npmrc') }}-deps:${{ hashFiles('./package.json') }}"
3840
restore-keys: |
3941
"setupcpp-cache-OS:${{ matrix.os }}-"
@@ -61,6 +63,14 @@ jobs:
6163
run: |
6264
pnpm run test.lint
6365
66+
- name: Validate Dist
67+
run: |
68+
if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then
69+
echo "Detected uncommitted changes after build. See status below:"
70+
git diff --ignore-space-at-eol --text dist/
71+
exit 1
72+
fi
73+
6474
- name: Upload Dist
6575
uses: actions/upload-artifact@v3
6676
with:

dist/actions/hdi.89f0ed6f.js renamed to dist/actions/hdi.4215b06b.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/actions/hdi.89f0ed6f.js.map renamed to dist/actions/hdi.4215b06b.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/actions/setup-cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/actions/setup-cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/legacy/hdi.069dd8f5.js renamed to dist/legacy/hdi.09e25805.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/legacy/hdi.069dd8f5.js.map renamed to dist/legacy/hdi.09e25805.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/legacy/setup-cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/legacy/setup-cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/modern/hdi.9d60a332.js renamed to dist/modern/hdi.340fbf70.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)