mirror of
				https://github.com/SphericalKat/medium.rip.git
				synced 2025-11-04 04:25:56 +00:00 
			
		
		
		
	fix(test): set up node and build frontend before backend
Signed-off-by: Sphericalkat <amolele@gmail.com>
This commit is contained in:
		
							parent
							
								
									bfe85addfa
								
							
						
					
					
						commit
						fe208531b5
					
				
							
								
								
									
										17
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							@ -6,11 +6,24 @@ jobs:
 | 
			
		||||
    name: Run tests
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    strategy:
 | 
			
		||||
        matrix:
 | 
			
		||||
          go-version: [ '1.18', '1.19', '1.20' ]
 | 
			
		||||
      matrix:
 | 
			
		||||
        go-version: ["1.18", "1.19", "1.20"]
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v3
 | 
			
		||||
 | 
			
		||||
      - name: Set up Node
 | 
			
		||||
        uses: actions/setup-node@v3
 | 
			
		||||
        with:
 | 
			
		||||
          node-version: 16
 | 
			
		||||
          cache: 'pnpm'
 | 
			
		||||
          cache-dependency-path: frontend/pnpm-lock.yaml
 | 
			
		||||
 | 
			
		||||
      - name: Build frontend
 | 
			
		||||
        run: |
 | 
			
		||||
            cd frontend
 | 
			
		||||
            pnpm install --frozen-lockfile
 | 
			
		||||
            pnpm run build
 | 
			
		||||
 | 
			
		||||
      - name: Set up Go
 | 
			
		||||
        uses: actions/setup-go@v4
 | 
			
		||||
        with:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user