mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
		
			619 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			619 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
name: Run tests
 | 
						|
 | 
						|
on:
 | 
						|
  push:
 | 
						|
    branches: [ master, dev ]
 | 
						|
  pull_request:
 | 
						|
    branches: [ master, dev ]
 | 
						|
 | 
						|
permissions:
 | 
						|
  contents: read
 | 
						|
 | 
						|
jobs:
 | 
						|
  build:
 | 
						|
    permissions:
 | 
						|
      contents: read  # for actions/checkout to fetch code
 | 
						|
    runs-on: ubuntu-latest
 | 
						|
    strategy:
 | 
						|
      matrix:
 | 
						|
        node-version: [18, 20, 22]
 | 
						|
    steps:
 | 
						|
    - uses: actions/checkout@v4
 | 
						|
    - name: Use Node.js ${{ matrix.node-version }}
 | 
						|
      uses: actions/setup-node@v4
 | 
						|
      with:
 | 
						|
        node-version: ${{ matrix.node-version }}
 | 
						|
    - name: Install Dependencies
 | 
						|
      run: npm install
 | 
						|
    - name: Run tests
 | 
						|
      run: |
 | 
						|
        npm run test
 |