mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 17:27:14 +08:00 
			
		
		
		
	chore: add formatting job to GitHub Actions
This commit is contained in:
		
							
								
								
									
										11
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							@@ -5,9 +5,16 @@ on:
 | 
			
		||||
    branches:
 | 
			
		||||
      - master
 | 
			
		||||
jobs:
 | 
			
		||||
  tests:
 | 
			
		||||
  nixfmt:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v4
 | 
			
		||||
    - uses: cachix/install-nix-action@v31
 | 
			
		||||
    - run: nix run ./tests#run .
 | 
			
		||||
    - run: nix fmt .
 | 
			
		||||
  tests:
 | 
			
		||||
    needs: nixfmt
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v4
 | 
			
		||||
    - uses: cachix/install-nix-action@v31
 | 
			
		||||
    - run: nix run ./tests#run .
 | 
			
		||||
		Reference in New Issue
	
	Block a user