Skip to content

Update eslint rules to match Simulator repo #32

Update eslint rules to match Simulator repo

Update eslint rules to match Simulator repo #32

Workflow file for this run

name: Deploy to Google Cloud
on:
push:
branches: [cd]
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
permissions:
# Needed to produce an OIDC token, which is used for Workload Identity Federation with Google Cloud
id-token: write
contents: read
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
path: checkout-prefix
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install firebase-tools
run: npm install -g firebase-tools
- name: Authenticate to Google
uses: 'google-github-actions/auth@v2'
with:
workload_identity_provider: 'projects/705985154569/locations/global/workloadIdentityPools/kipr-github-identity-pool/providers/github'
project_id: 'kipr-321905'
service_account: 'simulator-cloud-functions-gith@kipr-321905.iam.gserviceaccount.com'
create_credentials_file: true
export_environment_variables: true
cleanup_credentials: true
- name: Install dependencies
run: npm install
working-directory: checkout-prefix
- name: Build
run: npm run build
working-directory: checkout-prefix
- name: Deploy functions
id: deployFunctions
run: npm run deploy
working-directory: checkout-prefix
- name: Output firebase debug log on deployment failure
if: always() && (steps.deployFunctions.outcome == 'failure')
run: cat firebase-debug.log
working-directory: checkout-prefix