-
Notifications
You must be signed in to change notification settings - Fork 227
41 lines (32 loc) · 943 Bytes
/
shared-ci.yaml
File metadata and controls
41 lines (32 loc) · 943 Bytes
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
name: Shared CI
on:
pull_request:
paths:
- 'pnpm-lock.yaml'
- ".github/workflows/shared-ci.yaml"
- "composition/**/*"
- "connect/**/*"
- "shared/**/*"
concurrency:
group: ${{github.workflow}}-${{github.head_ref}}
cancel-in-progress: true
env:
CI: true
DO_NOT_TRACK: '1'
jobs:
build_test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/node
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Generate code
run: pnpm buf generate --template buf.ts.gen.yaml
- name: Check if git is not dirty after generating files
run: git diff --no-ext-diff --exit-code
- name: Build
run: pnpm run --filter ./connect --filter ./shared --filter ./connect --filter ./composition build
- name: Test
run: pnpm run --filter ./shared test