Merge pull request #2963 from semantic-release/always-test
This commit is contained in:
		
						commit
						2822fbee5d
					
				
							
								
								
									
										11
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							| @ -15,6 +15,10 @@ on: | |||||||
| permissions: | permissions: | ||||||
|   contents: read # to fetch code (actions/checkout) |   contents: read # to fetch code (actions/checkout) | ||||||
| 
 | 
 | ||||||
|  | env: | ||||||
|  |   FORCE_COLOR: 1 | ||||||
|  |   NPM_CONFIG_COLOR: always | ||||||
|  | 
 | ||||||
| jobs: | jobs: | ||||||
|   test_matrix: |   test_matrix: | ||||||
|     strategy: |     strategy: | ||||||
| @ -46,6 +50,7 @@ jobs: | |||||||
|   test: |   test: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     needs: test_matrix |     needs: test_matrix | ||||||
|  |     if: always() | ||||||
|     steps: |     steps: | ||||||
|       - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 |       - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | ||||||
|       - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3 |       - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3 | ||||||
| @ -55,3 +60,9 @@ jobs: | |||||||
|       - run: npm clean-install |       - run: npm clean-install | ||||||
|       - run: npm audit signatures |       - run: npm audit signatures | ||||||
|       - run: npm run lint |       - run: npm run lint | ||||||
|  |       - name: All matrix versions passed | ||||||
|  |         if: ${{ !(contains(needs.*.result, 'failure')) }} | ||||||
|  |         run: exit 0 | ||||||
|  |       - name: Some matrix version failed | ||||||
|  |         if: ${{ contains(needs.*.result, 'failure') }} | ||||||
|  |         run: exit 1 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user