cloudflare/kumo

Public

mirrored fromhttps://github.com/cloudflare/kumoAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
2ae9d85fb235eccab150eb2ae471e6165382e26d

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.github/workflows/pullrequest.yml

109lines · modecode

1name: Pull Request
2
3on:
4 pull_request:
5 paths-ignore:
6 - "*.md"
7 - ".changeset/**"
8 # Also trigger on push to PR branches (for bots that push via API)
9 push:
10 branches:
11 - "opencode/**"
12 paths-ignore:
13 - "*.md"
14 - ".changeset/**"
15
16permissions:
17 contents: read
18
19concurrency:
20 group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
21 cancel-in-progress: true
22
23jobs:
24 changeset:
25 timeout-minutes: 2
26 runs-on: ubuntu-latest
27 steps:
28 - uses: actions/checkout@v4
29 with:
30 fetch-depth: 0
31 - uses: ./.github/actions/install-dependencies
32 - run: pnpm tsx ci/scripts/validate-kumo-changeset.ts
33
34 build:
35 timeout-minutes: 5
36 runs-on: ubuntu-latest
37 steps:
38 - uses: actions/checkout@v4
39 with:
40 fetch-depth: 1
41 - uses: ./.github/actions/install-dependencies
42 - run: pnpm --filter @cloudflare/kumo build
43 - uses: actions/upload-artifact@v4
44 with:
45 name: kumo-dist
46 path: packages/kumo/dist
47 retention-days: 1
48 - uses: actions/upload-artifact@v4
49 with:
50 name: kumo-ai
51 path: packages/kumo/ai
52 retention-days: 1
53
54 lint:
55 needs: build
56 timeout-minutes: 5
57 runs-on: ubuntu-latest
58 steps:
59 - uses: actions/checkout@v4
60 with:
61 fetch-depth: 1
62 - uses: ./.github/actions/install-dependencies
63 - uses: actions/download-artifact@v4
64 with:
65 name: kumo-dist
66 path: packages/kumo/dist
67 - uses: actions/download-artifact@v4
68 with:
69 name: kumo-ai
70 path: packages/kumo/ai
71 - run: pnpm lint
72
73 typecheck:
74 needs: build
75 timeout-minutes: 5
76 runs-on: ubuntu-latest
77 steps:
78 - uses: actions/checkout@v4
79 with:
80 fetch-depth: 1
81 - uses: ./.github/actions/install-dependencies
82 - uses: actions/download-artifact@v4
83 with:
84 name: kumo-dist
85 path: packages/kumo/dist
86 - uses: actions/download-artifact@v4
87 with:
88 name: kumo-ai
89 path: packages/kumo/ai
90 - run: pnpm typecheck
91
92 test:
93 needs: build
94 timeout-minutes: 5
95 runs-on: ubuntu-latest
96 steps:
97 - uses: actions/checkout@v4
98 with:
99 fetch-depth: 1
100 - uses: ./.github/actions/install-dependencies
101 - uses: actions/download-artifact@v4
102 with:
103 name: kumo-dist
104 path: packages/kumo/dist
105 - uses: actions/download-artifact@v4
106 with:
107 name: kumo-ai
108 path: packages/kumo/ai
109 - run: pnpm --filter @cloudflare/kumo test
110