Include GenAI home test #4
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: React CI | |
| on: [push] | |
| jobs: | |
| build: | |
| name: Build and unit test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - run: npm install | |
| - run: npm run build --if-present | |
| - run: npm test | |
| deploy: | |
| name: Firebase deploy | |
| needs: [build] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: '22' | |
| - run: npm install | |
| - run: npm run build | |
| - run: npm install -g firebase-tools | |
| - run: firebase deploy --token "${{ secrets.FIREBASE_DEPLOY_TOKEN }}" --non-interactive |