mirror of
				https://github.com/actions/cache.git
				synced 2025-10-31 11:48:38 +08:00 
			
		
		
		
	Merge pull request #37 from runs-on/fix/test-container
Add test for container job
This commit is contained in:
		
						commit
						4a6341e149
					
				
							
								
								
									
										17
									
								
								.github/workflows/tests.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								.github/workflows/tests.yml
									
									
									
									
										vendored
									
									
								
							|  | @ -76,3 +76,20 @@ jobs: | ||||||
|     - name: Verify cache files outside working directory |     - name: Verify cache files outside working directory | ||||||
|       shell: bash |       shell: bash | ||||||
|       run: __tests__/verify-cache-files.sh ${{ runner.os }} ~/test-cache |       run: __tests__/verify-cache-files.sh ${{ runner.os }} ~/test-cache | ||||||
|  | 
 | ||||||
|  |   test-container: | ||||||
|  |     runs-on: runs-on,runner=2cpu-linux-arm64 | ||||||
|  |     container: | ||||||
|  |       image: ubuntu:latest | ||||||
|  |     steps: | ||||||
|  |     - name: Checkout | ||||||
|  |       uses: actions/checkout@v3 | ||||||
|  |     - name: Test in container | ||||||
|  |       run: | | ||||||
|  |         __tests__/create-cache-files.sh Linux test-cache | ||||||
|  |         __tests__/verify-cache-files.sh Linux test-cache | ||||||
|  |     - name: Save cache | ||||||
|  |       uses: ./ | ||||||
|  |       with: | ||||||
|  |         key: test-container-${{ github.run_id }} | ||||||
|  |         path: test-cache | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Cyril Rohr
						Cyril Rohr