chore: Granting api key #22
Workflow file for this run
This file contains 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: CI for Cloud Run Functions on Firebase | |
on: | |
pull_request: | |
paths: | |
- 'prompts/**' | |
- 'src/**' | |
types: | |
- opened | |
- synchronize | |
jobs: | |
changes: | |
name: Detect Changes | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: read | |
contents: read | |
timeout-minutes: 15 | |
outputs: | |
genkit_functions: ${{ steps.filter.outputs.genkit_functions }} | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Detect changes | |
uses: dorny/paths-filter@v2 | |
id: filter | |
with: | |
filters: | | |
genkit_functions: | |
- 'prompts/**' | |
- 'src/**' | |
functions_ci: | |
name: Cloud Run Functions CI | |
needs: | |
- changes | |
if: ${{ needs.changes.outputs.genkit_functions == 'true' }} | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
timeout-minutes: 15 | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Install Dependencies | |
run: npm install | |
- name: Check for linting errors | |
run: npm run lint |