Update Serverless (JS) #153
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 (email-importer) | |
on: | |
push: | |
branches: [main] | |
paths: | |
- aws/email-importer/** | |
pull_request: | |
branches: [main] | |
paths: | |
- aws/email-importer/** | |
workflow_dispatch: | |
defaults: | |
run: | |
working-directory: aws/email-importer | |
concurrency: | |
group: ci-${{ github.ref }}-email-importer | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: npm | |
cache-dependency-path: aws/email-importer/package-lock.json | |
- name: Setup Firebase CLI | |
run: npm install -g firebase-tools | |
- run: npm ci | |
name: Install dependencies | |
- run: npm test | |
name: Run tests | |
- run: npm run ts:check | |
name: Type check |