mirror of
				https://github.com/pagefaultgames/pokerogue.git
				synced 2025-11-04 02:11:19 +01:00 
			
		
		
		
	* Update node and workflows to use version 22.14 * Update @types/node package * Update engines field in package.json * Hardcode node version in github pages workflow * Update to checkout@v4 in github pages workflow
		
			
				
	
	
		
			41 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
name: Biome Code Quality
 | 
						|
 | 
						|
on:
 | 
						|
  # Trigger the workflow on push or pull request,
 | 
						|
  # but only for the main branch
 | 
						|
  push:
 | 
						|
    branches:
 | 
						|
      - main  # Trigger on push events to the main branch
 | 
						|
      - beta # Trigger on push events to the beta branch
 | 
						|
  pull_request:
 | 
						|
    branches:
 | 
						|
      - main  # Trigger on pull request events targeting the main branch
 | 
						|
      - beta # Trigger on pull request events targeting the beta branch
 | 
						|
  merge_group:
 | 
						|
    types: [checks_requested]
 | 
						|
 | 
						|
jobs:
 | 
						|
  run-linters:  # Define a job named "run-linters"
 | 
						|
    name: Run linters  # Human-readable name for the job
 | 
						|
    runs-on: ubuntu-latest  # Specify the latest Ubuntu runner for the job
 | 
						|
 | 
						|
    steps:
 | 
						|
      - name: Check out Git repository  # Step to check out the repository
 | 
						|
        uses: actions/checkout@v4  # Use the checkout action version 4
 | 
						|
        with:
 | 
						|
          submodules: 'recursive'
 | 
						|
 | 
						|
      - name: Set up Node.js  # Step to set up Node.js environment
 | 
						|
        uses: actions/setup-node@v4  # Use the setup-node action version 4
 | 
						|
        with:
 | 
						|
          node-version-file: '.nvmrc'
 | 
						|
          cache: 'npm'
 | 
						|
 | 
						|
      - name: Install Node.js dependencies  # Step to install Node.js dependencies
 | 
						|
        run: npm ci  # Use 'npm ci' to install dependencies
 | 
						|
      
 | 
						|
      - name: eslint  # Step to run linters
 | 
						|
        run: npm run eslint-ci
 | 
						|
 | 
						|
      - name: Lint with Biome  # Step to run linters
 | 
						|
        run: npm run biome-ci |