Skip to content

Commit

Permalink
Add CI for Firebase directory (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
sawyerh authored Dec 26, 2022
1 parent efb0fb4 commit 16e522d
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci-email-importer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ name: CI (email-importer)
on:
push:
branches: [main]
paths:
- aws/email-importer/**
pull_request:
branches: [main]
paths:
- aws/email-importer/**
workflow_dispatch:

defaults:
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/ci-firebase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CI (firebase)

on:
push:
branches: [main]
paths:
- firebase/functions/**
pull_request:
branches: [main]
paths:
- firebase/functions/**
workflow_dispatch:

defaults:
run:
working-directory: firebase/functions

concurrency:
group: ci-firebase
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
cache-dependency-path: firebase/functions/package-lock.json
- name: Setup Firebase CLI
run: npm install -g firebase-tools
- run: npm ci
name: Install dependencies

- name: Setup Firebase service account
run: echo "$SERVICE_ACCOUNT" > secrets/test-service-account.json
env:
SERVICE_ACCOUNT: "${{ secrets.TEST_FIREBASE_SERVICE_ACCOUNT }}"

- name: Setup Firebase app
run: echo "$FIREBASE_APP" > secrets/test-app.json
env:
FIREBASE_APP: "${{ secrets.TEST_FIREBASE_APP }}"

- run: npm test
name: Run tests

1 comment on commit 16e522d

@vercel
Copy link

@vercel vercel bot commented on 16e522d Dec 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.