-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (48 loc) · 1.37 KB
/
functions-integration.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Cloud Functions Integration
on:
# push:
# branches:
# - 'main'
# paths:
# - 'functions/**'
# - '!functions/**.md'
# - '.github/workflows/functions-integration.yml'
workflow_call:
jobs:
lint-typecheck:
name: Lint & Type Check
runs-on: ubuntu-latest
permissions:
checks: write
pull-requests: read
contents: read
defaults:
run:
working-directory: functions
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Nodejs Environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
cache-dependency-path: 'functions/yarn.lock'
- name: Install Dependencies
run: yarn --frozen-lockfile
- name: Lint
run: yarn lint:nofix --output-file eslint_report.json --format json
continue-on-error: true
- name: Type Check
run: yarn tsc --noEmit > typescript.log
continue-on-error: true
- name: Annotate Code
uses: DerLev/eslint-annotations@v2
with:
eslint-report: functions/eslint_report.json
typescript-log: functions/typescript.log
github-token: ${{ secrets.GITHUB_TOKEN }}
error-on-warn: true
status-check-name: Annotations
fail-in-pr: false
add-notice-with-url: false