Skip to content

Major build optimization and security improvements #143

Major build optimization and security improvements

Major build optimization and security improvements #143

Workflow file for this run

name: Frontend CI

Check failure on line 1 in .github/workflows/frontend.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/frontend.yml

Invalid workflow file

(Line: 21, Col: 21): Unrecognized named-value: 'matrix'. Located at position 1 within expression: matrix.node-version, (Line: 24, Col: 31): Unrecognized named-value: 'matrix'. Located at position 1 within expression: matrix.node-version, (Line: 34, Col: 42): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.WEB3AUTH_CLIENT_ID, (Line: 35, Col: 41): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.INFURA_PROJECT_ID, (Line: 41, Col: 42): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.WEB3AUTH_CLIENT_ID, (Line: 42, Col: 41): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.INFURA_PROJECT_ID
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