Enforce Typecheck #51
					 1 changed files with 34 additions and 0 deletions
				
			
		
							
								
								
									
										34
									
								
								.forgejo/workflows/checkpr.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								.forgejo/workflows/checkpr.yml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,34 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  pull_request:
 | 
				
			||||||
 | 
					    types: [opened, synchronize, reopened]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  depoly:
 | 
				
			||||||
 | 
					    runs-on: fedora-41
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - name: Checkout
 | 
				
			||||||
 | 
					        uses: actions/checkout@v4
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Setup Bun
 | 
				
			||||||
 | 
					        uses: oven-sh/setup-bun@v2
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          bun-version-file: 'package.json'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Cache Dependencies
 | 
				
			||||||
 | 
					        id: dependencies-cache
 | 
				
			||||||
 | 
					        uses: actions/cache@v4
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          path: ~/.bun/install/cache
 | 
				
			||||||
 | 
					          key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
 | 
				
			||||||
 | 
					          restore-keys: |
 | 
				
			||||||
 | 
					            ${{ runner.os }}-bun-
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Install Dependencies
 | 
				
			||||||
 | 
					        run: bun install
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Validate types
 | 
				
			||||||
 | 
					        run: bun typecheck
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Build Dist
 | 
				
			||||||
 | 
					        run: VITE_CODE_VERSION=$GITHUB_SHA bun dist
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue