Merge pull request #239 from aminya/validate-dist [skip test]

This commit is contained in:
Amin Yahyaabadi 2024-03-31 23:58:10 -07:00 committed by GitHub
commit 5ff0bde949
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
13 changed files with 27 additions and 17 deletions

View File

@ -9,6 +9,10 @@ on:
tags:
- "*"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
Build:
runs-on: ubuntu-22.04
@ -32,8 +36,6 @@ jobs:
path: |
~/.pnpm-store
D:\.pnpm-store
./node_modules
./.parcel-cache
key: "setupcpp-cache-OS:${{ matrix.os }}-node:${{ matrix.node }}-pnpm:${{ matrix.pnpm }}-${{ hashFiles('./.npmrc') }}-deps:${{ hashFiles('./package.json') }}"
restore-keys: |
"setupcpp-cache-OS:${{ matrix.os }}-"
@ -61,6 +63,14 @@ jobs:
run: |
pnpm run test.lint
- name: Validate Dist
run: |
if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff --ignore-space-at-eol --text dist/
exit 1
fi
- name: Upload Dist
uses: actions/upload-artifact@v3
with:

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long