Skip to content

Commit

Permalink
added gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickchen8 committed Nov 4, 2024
1 parent 0d0be9b commit 1c8ffb6
Show file tree
Hide file tree
Showing 3 changed files with 689 additions and 25 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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
Loading

0 comments on commit 1c8ffb6

Please sign in to comment.