Skip to content

fix(typescript): sort out an IDE error #482

fix(typescript): sort out an IDE error

fix(typescript): sort out an IDE error #482

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different
# versions of node. For more information see:
# https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches:
- main
pull_request:
branches:
- main
defaults:
run:
shell: bash
working-directory: functions
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- '18'
- '20'
- latest
steps:
- uses: actions/checkout@v4
# https://github.com/actions/setup-node/issues/480
- run: corepack enable
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: yarn
cache-dependency-path: functions/yarn.lock
- run: yarn install --immutable
- run: yarn lint
- run: yarn test
- run: yarn build