Loading .github/workflows/check-dist.yml +8 −6 Changes for .github/workflows/check-dist.yml: 8 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -32,14 +32,16 @@ jobs: - name: Install dependencies run: npm ci - name: Move the committed index.js file run: mv dist/ /tmp/ - name: Rebuild the index.js file - name: Rebuild the dist/ directory run: npm run build - name: Compare the expected and actual index.js files run: git diff --ignore-all-space dist/ /tmp/dist - name: Compare the expected and actual dist/ directories run: | if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then echo "Detected uncommitted changes after build. See status below:" git diff exit 1 fi id: diff # If index.js was different than expected, upload the expected version as an artifact Loading .github/workflows/workflow.yml −11 Changes for .github/workflows/workflow.yml: 0 added lines, 11 removed lines. Original line number Diff line number Diff line Loading @@ -47,17 +47,6 @@ 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 diff --ignore-space-at-eol | 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: Loading Loading
.github/workflows/check-dist.yml +8 −6 Changes for .github/workflows/check-dist.yml: 8 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -32,14 +32,16 @@ jobs: - name: Install dependencies run: npm ci - name: Move the committed index.js file run: mv dist/ /tmp/ - name: Rebuild the index.js file - name: Rebuild the dist/ directory run: npm run build - name: Compare the expected and actual index.js files run: git diff --ignore-all-space dist/ /tmp/dist - name: Compare the expected and actual dist/ directories run: | if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then echo "Detected uncommitted changes after build. See status below:" git diff exit 1 fi id: diff # If index.js was different than expected, upload the expected version as an artifact Loading
.github/workflows/workflow.yml −11 Changes for .github/workflows/workflow.yml: 0 added lines, 11 removed lines. Original line number Diff line number Diff line Loading @@ -47,17 +47,6 @@ 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 diff --ignore-space-at-eol | 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: Loading