Skip to content

Commit 746f2a9

Browse files
authored
Merge pull request #67 from solvedac/typespec
TypeSpec 적용 + alpha
2 parents aaadf4d + 5d0e488 commit 746f2a9

File tree

134 files changed

+5209
-2453
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+5209
-2453
lines changed

.github/workflows/deploy.yaml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
lint:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: pnpm/action-setup@v3
14+
with:
15+
version: 8
16+
- uses: actions/setup-node@v4
17+
with:
18+
cache: pnpm
19+
- run: pnpm i
20+
- run: pnpm build
21+
- uses: stoplightio/spectral-action@v0.8.10
22+
with:
23+
file_glob: 'tsp-output/*.yaml'
24+
page-deployment:
25+
needs: [lint]
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: pnpm/action-setup@v3
30+
with:
31+
version: 8
32+
- uses: actions/setup-node@v4
33+
with:
34+
cache: pnpm
35+
- run: pnpm i
36+
- run: pnpm build
37+
- name: Setup Pages
38+
uses: actions/configure-pages@v5
39+
- name: Upload artifact
40+
uses: actions/upload-pages-artifact@v3
41+
with:
42+
path: build/
43+
- name: Deploy to GitHub Pages
44+
id: deployment
45+
uses: actions/deploy-pages@v4
46+
library-deployment:
47+
needs: [lint]
48+
runs-on: ubuntu-latest
49+
strategy:
50+
matrix:
51+
repo:
52+
- 'solvedac/api.ts'
53+
- 'solvedac/api.rs'
54+
steps:
55+
- name: Invoke Workflow
56+
uses: benc-uk/workflow-dispatch@v1
57+
with:
58+
workflow: Follow Up
59+
token: ${{ secrets.WORKFLOW_DISPATCH }}
60+
repo: ${{ matrix.repo }}

.github/workflows/lint.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,26 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v2
16+
- uses: pnpm/action-setup@v3
17+
with:
18+
version: 8
19+
- uses: actions/setup-node@v4
20+
with:
21+
cache: pnpm
22+
- run: pnpm i
23+
- run: pnpm build
1624
- uses: stoplightio/spectral-action@v0.8.10
1725
with:
18-
file_glob: "src/*.yaml"
26+
file_glob: 'tsp-output/*.yaml'
1927
library-deployment:
2028
needs: [lint]
2129
runs-on: ubuntu-latest
2230
if: github.event_name == 'push'
2331
strategy:
2432
matrix:
2533
repo:
26-
- "solvedac/api.ts"
27-
- "solvedac/api.rs"
34+
- 'solvedac/api.ts'
35+
- 'solvedac/api.rs'
2836
steps:
2937
- name: Invoke Workflow
3038
uses: benc-uk/workflow-dispatch@v1

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
tsp-output/
3+
build/

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Temp
2+
src/**/*.yaml

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"singleQuote": true,
3+
"plugins": ["@typespec/prettier-plugin-typespec"]
4+
}

.vscode/extensions.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
{
2-
"recommendations": ["redhat.vscode-yaml", "42crunch.vscode-openapi"]
2+
"recommendations": [
3+
"redhat.vscode-yaml",
4+
"42crunch.vscode-openapi",
5+
"typespec.typespec-vscode"
6+
]
37
}

0 commit comments

Comments
 (0)