mirror of
				https://github.com/Swatinem/rust-cache.git
				synced 2025-10-31 16:13:49 +00:00 
			
		
		
		
	Bumps the actions group with 1 update: [actions/setup-node](https://github.com/actions/setup-node). Updates `actions/setup-node` from 4 to 5 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/setup-node dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
		
			
				
	
	
		
			47 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| name: check dist/
 | |
| 
 | |
| on:
 | |
|   push:
 | |
|     branches:
 | |
|       - master
 | |
|     paths-ignore:
 | |
|       - "**.md"
 | |
|   pull_request:
 | |
|     paths-ignore:
 | |
|       - "**.md"
 | |
|   workflow_dispatch:
 | |
| 
 | |
| jobs:
 | |
|   check-dist:
 | |
|     if: github.repository == 'Swatinem/rust-cache'
 | |
|     runs-on: ubuntu-latest
 | |
|     steps:
 | |
|       - uses: actions/checkout@v5
 | |
| 
 | |
|       - name: Setup Node.js 20.x
 | |
|         uses: actions/setup-node@v5
 | |
|         with:
 | |
|           node-version: 20.x
 | |
|           cache: npm
 | |
| 
 | |
|       - name: Install dependencies
 | |
|         run: npm ci
 | |
| 
 | |
|       - name: Rebuild the dist/ directory
 | |
|         run: npm run prepare
 | |
| 
 | |
|       - name: Compare the expected and actual dist/ directories
 | |
|         run: |
 | |
|           if [ "$(git diff dist/ | wc -l)" -gt "0" ]; then
 | |
|             echo "Detected uncommitted changes after build. See status below:"
 | |
|             git diff
 | |
|             exit 1
 | |
|           fi
 | |
|         id: diff
 | |
| 
 | |
|       - uses: actions/upload-artifact@v4
 | |
|         if: ${{ failure() && steps.diff.conclusion == 'failure' }}
 | |
|         with:
 | |
|           name: dist
 | |
|           path: dist/
 |