build(ci): add caching for frontend dependencies and dist
This commit is contained in:
		
					parent
					
						
							
								ef8111cc7e
							
						
					
				
			
			
				commit
				
					
						0590a2f9ee
					
				
			
		
					 1 changed files with 24 additions and 0 deletions
				
			
		|  | @ -47,6 +47,14 @@ jobs: | ||||||
|         uses: actions/checkout@v4 |         uses: actions/checkout@v4 | ||||||
|       - name: Install bun |       - name: Install bun | ||||||
|         uses: oven-sh/setup-bun@v2 |         uses: oven-sh/setup-bun@v2 | ||||||
|  |       - uses: actions/cache@v3 | ||||||
|  |         working-directory: ./frontend | ||||||
|  |         with: | ||||||
|  |           path: | | ||||||
|  |             frontend/node_modules/ | ||||||
|  |           key: ${{ runner.os }}-bun- | ||||||
|  |           restore-keys: | | ||||||
|  |             ${{ runner.os }}-bun- | ||||||
|       - name: Install dependencies |       - name: Install dependencies | ||||||
|         run: | |         run: | | ||||||
|           cd frontend |           cd frontend | ||||||
|  | @ -66,6 +74,14 @@ jobs: | ||||||
|         uses: actions/checkout@v4 |         uses: actions/checkout@v4 | ||||||
|       - name: Install bun |       - name: Install bun | ||||||
|         uses: oven-sh/setup-bun@v2 |         uses: oven-sh/setup-bun@v2 | ||||||
|  |       - uses: actions/cache@v3 | ||||||
|  |         working-directory: ./frontend | ||||||
|  |         with: | ||||||
|  |           path: | | ||||||
|  |             frontend/node_modules/ | ||||||
|  |           key: ${{ runner.os }}-bun- | ||||||
|  |           restore-keys: | | ||||||
|  |             ${{ runner.os }}-bun- | ||||||
|       - name: Install dependencies |       - name: Install dependencies | ||||||
|         run: | |         run: | | ||||||
|           cd frontend |           cd frontend | ||||||
|  | @ -93,6 +109,14 @@ jobs: | ||||||
|           key: ${{ runner.os }}-bun- |           key: ${{ runner.os }}-bun- | ||||||
|           restore-keys: | |           restore-keys: | | ||||||
|             ${{ runner.os }}-bun- |             ${{ runner.os }}-bun- | ||||||
|  |       - uses: actions/cache@v3 | ||||||
|  |         working-directory: ./frontend | ||||||
|  |         with: | ||||||
|  |           path: | | ||||||
|  |             frontend/dist/ | ||||||
|  |           key: ${{ runner.os }}-dist- | ||||||
|  |           restore-keys: | | ||||||
|  |             ${{ runner.os }}-dist- | ||||||
|       - name: Install dependencies |       - name: Install dependencies | ||||||
|         run: | |         run: | | ||||||
|           cd frontend |           cd frontend | ||||||
|  |  | ||||||
		Reference in a new issue