Skip to content

Commit

Permalink
Add GitHub Action for Cloud Functions
Browse files Browse the repository at this point in the history
  • Loading branch information
PSchmiedmayer committed Mar 11, 2024
1 parent e69f0d4 commit a6f166f
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 45 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,21 @@ jobs:
uses: StanfordBDHG/.github/.github/workflows/swiftlint.yml@v2
permissions:
contents: read
eslint:
name: eslint
runs-on: ubuntu-latest
permissions:
contents: read
defaults:
run:
working-directory: ./functions
steps:
- uses: actions/checkout@v4
- name: Setup NodeJS
uses: actions/setup-node@v3
- name: eslint
run: |
npm run lint
markdownlinkcheck:
name: Markdown Link Check
uses: StanfordBDHG/.github/.github/workflows/markdown-link-check.yml@v2
Expand Down
2 changes: 1 addition & 1 deletion functions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

const {onCall} = require("firebase-functions/v2/https");
const {logger, https} = require("firebase-functions/v2");
const { FieldValue } = require('firebase-admin/firestore');
const {FieldValue} = require("firebase-admin/firestore");
const admin = require("firebase-admin");

admin.initializeApp();
Expand Down
3 changes: 1 addition & 2 deletions functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"shell": "firebase functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log",
"compile": "tsc --project tsconfig-compile.json"
"logs": "firebase functions:log"
},
"engines": {
"node": "20"
Expand Down
37 changes: 0 additions & 37 deletions functions/tsconfig.template.json

This file was deleted.

5 changes: 0 additions & 5 deletions functions/tsconfig.template.json.license

This file was deleted.

0 comments on commit a6f166f

Please sign in to comment.