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: tags:
- "*" - "*"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs: jobs:
Build: Build:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
@ -32,8 +36,6 @@ jobs:
path: | path: |
~/.pnpm-store ~/.pnpm-store
D:\.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') }}" key: "setupcpp-cache-OS:${{ matrix.os }}-node:${{ matrix.node }}-pnpm:${{ matrix.pnpm }}-${{ hashFiles('./.npmrc') }}-deps:${{ hashFiles('./package.json') }}"
restore-keys: | restore-keys: |
"setupcpp-cache-OS:${{ matrix.os }}-" "setupcpp-cache-OS:${{ matrix.os }}-"
@ -61,6 +63,14 @@ jobs:
run: | run: |
pnpm run test.lint 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 - name: Upload Dist
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: 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