Skip to content

Commit

Permalink
Merge pull request #67 from solvedac/typespec
Browse files Browse the repository at this point in the history
TypeSpec 적용 + alpha
  • Loading branch information
RanolP authored Apr 26, 2024
2 parents aaadf4d + 5d0e488 commit 746f2a9
Show file tree
Hide file tree
Showing 134 changed files with 5,209 additions and 2,453 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Deploy

on:
push:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 8
- uses: actions/setup-node@v4
with:
cache: pnpm
- run: pnpm i
- run: pnpm build
- uses: stoplightio/[email protected]
with:
file_glob: 'tsp-output/*.yaml'
page-deployment:
needs: [lint]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 8
- uses: actions/setup-node@v4
with:
cache: pnpm
- run: pnpm i
- run: pnpm build
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: build/
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
library-deployment:
needs: [lint]
runs-on: ubuntu-latest
strategy:
matrix:
repo:
- 'solvedac/api.ts'
- 'solvedac/api.rs'
steps:
- name: Invoke Workflow
uses: benc-uk/workflow-dispatch@v1
with:
workflow: Follow Up
token: ${{ secrets.WORKFLOW_DISPATCH }}
repo: ${{ matrix.repo }}
14 changes: 11 additions & 3 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,26 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v3
with:
version: 8
- uses: actions/setup-node@v4
with:
cache: pnpm
- run: pnpm i
- run: pnpm build
- uses: stoplightio/[email protected]
with:
file_glob: "src/*.yaml"
file_glob: 'tsp-output/*.yaml'
library-deployment:
needs: [lint]
runs-on: ubuntu-latest
if: github.event_name == 'push'
strategy:
matrix:
repo:
- "solvedac/api.ts"
- "solvedac/api.rs"
- 'solvedac/api.ts'
- 'solvedac/api.rs'
steps:
- name: Invoke Workflow
uses: benc-uk/workflow-dispatch@v1
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
tsp-output/
build/
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Temp
src/**/*.yaml
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"plugins": ["@typespec/prettier-plugin-typespec"]
}
6 changes: 5 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"recommendations": ["redhat.vscode-yaml", "42crunch.vscode-openapi"]
"recommendations": [
"redhat.vscode-yaml",
"42crunch.vscode-openapi",
"typespec.typespec-vscode"
]
}
Loading

0 comments on commit 746f2a9

Please sign in to comment.