Skip to content

Instantly share code, notes, and snippets.

@smrfeld
Last active August 13, 2021 09:20
Show Gist options
  • Save smrfeld/666e10ef7b3710aa74f7f2b3a7bfead2 to your computer and use it in GitHub Desktop.
Save smrfeld/666e10ef7b3710aa74f7f2b3a7bfead2 to your computer and use it in GitHub Desktop.
GitLab CI for firebase functions
image: node:12.13.0-alpine
before_script:
- npm i -g firebase-tools
test-functions:
stage: test
script:
- cd functions
- npm install
- firebase use <YOUR_PROJECT>
- firebase functions:config:set fb.token=$FIREBASE_TOKEN
- firebase functions:config:get > .runtimeconfig.json
- cd test
- npm run test
only:
refs:
- master
changes:
- functions/**/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment