Major build optimization and security improvements #143
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Frontend CI | ||
|
Check failure on line 1 in .github/workflows/frontend.yml
|
||
| on: | ||
| push: | ||
| branches: [web3auth-integration] | ||
| pull_request: | ||
| branches: [web3auth-integration] | ||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 | ||
| strategy: | ||
| matrix: | ||
| node-version: [18.x, 16.x] | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Use Node.js ${{ matrix.node-version }} | ||
| uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| cache: 'npm' | ||
| - name: Install Frontend Dependencies | ||
| working-directory: ./frontend | ||
| run: npm install | ||
| - name: Build Frontend | ||
| working-directory: ./frontend | ||
| env: | ||
| VITE_WEB3AUTH_CLIENT_ID: ${{ secrets.WEB3AUTH_CLIENT_ID }} | ||
| VITE_INFURA_PROJECT_ID: ${{ secrets.INFURA_PROJECT_ID }} | ||
| run: npm run build | ||
| - name: Run Frontend Tests | ||
| working-directory: ./frontend | ||
| env: | ||
| VITE_WEB3AUTH_CLIENT_ID: ${{ secrets.WEB3AUTH_CLIENT_ID }} | ||
| VITE_INFURA_PROJECT_ID: ${{ secrets.INFURA_PROJECT_ID }} | ||
| run: npm test -- --watchAll=false | ||