Merge pull request #38 from Web3Auth/feat/new-react-demo #19
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: Build, Test & Lint | |
| on: [push] | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| node: ["22.x"] | |
| os: [ubuntu-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Check out Git repository | |
| uses: actions/checkout@v4 | |
| - name: Set up node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| cache: "npm" | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Lint | |
| run: npm run lint | |
| - name: Build | |
| run: npm run build | |
| env: | |
| VITE_APP_INFURA_PROJECT_KEY: ${{ secrets.VITE_APP_INFURA_PROJECT_KEY }} | |
| - name: Install playwright webkit | |
| run: npx playwright install-deps webkit | |
| - name: Test | |
| run: npx playwright install && npm run test | |
| env: | |
| VITE_APP_INFURA_PROJECT_KEY: ${{ secrets.VITE_APP_INFURA_PROJECT_KEY }} |