Skip to content

Commit 9ed26bd

Browse files
committed
chore: add GitHub CI workflow
1 parent 5738ee7 commit 9ed26bd

22 files changed

Lines changed: 107 additions & 97 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
7+
concurrency:
8+
group: ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
9+
cancel-in-progress: true
10+
11+
permissions:
12+
contents: read
13+
14+
env:
15+
NEXT_TELEMETRY_DISABLED: "1"
16+
17+
jobs:
18+
lint:
19+
name: Lint
20+
runs-on: ubuntu-latest
21+
timeout-minutes: 15
22+
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/checkout@v4
26+
27+
- name: Set up pnpm
28+
uses: pnpm/action-setup@v4
29+
with:
30+
version: 10
31+
run_install: false
32+
33+
- name: Set up Node.js
34+
uses: actions/setup-node@v4
35+
with:
36+
node-version-file: .nvmrc
37+
cache: pnpm
38+
39+
- name: Install dependencies
40+
run: pnpm install --frozen-lockfile --ignore-scripts
41+
42+
- name: Run Biome checks
43+
run: pnpm lint
44+
45+
build:
46+
name: Build
47+
runs-on: ubuntu-latest
48+
timeout-minutes: 15
49+
needs: lint
50+
51+
steps:
52+
- name: Checkout repository
53+
uses: actions/checkout@v4
54+
55+
- name: Set up pnpm
56+
uses: pnpm/action-setup@v4
57+
with:
58+
version: 10
59+
run_install: false
60+
61+
- name: Set up Node.js
62+
uses: actions/setup-node@v4
63+
with:
64+
node-version-file: .nvmrc
65+
cache: pnpm
66+
67+
- name: Install dependencies
68+
run: pnpm install --frozen-lockfile --ignore-scripts
69+
70+
- name: Generate MDX source
71+
run: pnpm exec fumadocs-mdx
72+
73+
- name: Build application
74+
run: pnpm build
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
22
"title": "Activity Service",
3-
"pages": [
4-
"GetActivity",
5-
"ListActivities"
6-
]
7-
}
3+
"pages": ["GetActivity", "ListActivities"]
4+
}
Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
{
22
"title": "Attachment Service",
3-
"pages": [
4-
"CreateAttachment",
5-
"DeleteAttachment",
6-
"GetAttachment",
7-
"ListAttachments",
8-
"UpdateAttachment"
9-
]
10-
}
3+
"pages": ["CreateAttachment", "DeleteAttachment", "GetAttachment", "ListAttachments", "UpdateAttachment"]
4+
}
Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
{
22
"title": "Auth Service",
3-
"pages": [
4-
"GetCurrentUser",
5-
"RefreshToken",
6-
"SignIn",
7-
"SignOut"
8-
]
9-
}
3+
"pages": ["GetCurrentUser", "RefreshToken", "SignIn", "SignOut"]
4+
}
Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
{
22
"title": "Identity Provider Service",
3-
"pages": [
4-
"CreateIdentityProvider",
5-
"DeleteIdentityProvider",
6-
"GetIdentityProvider",
7-
"ListIdentityProviders",
8-
"UpdateIdentityProvider"
9-
]
10-
}
3+
"pages": ["CreateIdentityProvider", "DeleteIdentityProvider", "GetIdentityProvider", "ListIdentityProviders", "UpdateIdentityProvider"]
4+
}
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
{
22
"title": "Instance Service",
3-
"pages": [
4-
"GetInstanceProfile",
5-
"GetInstanceSetting",
6-
"UpdateInstanceSetting"
7-
]
8-
}
3+
"pages": ["GetInstanceProfile", "GetInstanceSetting", "UpdateInstanceSetting"]
4+
}

‎content/docs/api/0-26-2/memoservice/meta.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
"UpdateMemo",
1717
"UpsertMemoReaction"
1818
]
19-
}
19+
}

‎content/docs/api/0-26-2/meta.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
"shortcutservice",
1212
"userservice"
1313
]
14-
}
14+
}
Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
{
22
"title": "Shortcut Service",
3-
"pages": [
4-
"CreateShortcut",
5-
"DeleteShortcut",
6-
"GetShortcut",
7-
"ListShortcuts",
8-
"UpdateShortcut"
9-
]
10-
}
3+
"pages": ["CreateShortcut", "DeleteShortcut", "GetShortcut", "ListShortcuts", "UpdateShortcut"]
4+
}

‎content/docs/api/0-26-2/userservice/meta.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
"UpdateUserSetting",
2323
"UpdateUserWebhook"
2424
]
25-
}
25+
}

0 commit comments

Comments
 (0)