Skip to content

Commit

Permalink
feat: Add ci script
Browse files Browse the repository at this point in the history
  • Loading branch information
worgho2 committed May 22, 2024
1 parent ed13081 commit b5f6460
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ _dev
.sst
coverage
node_modules
dist
dist
.docusaurus
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on: ['push', 'pull_request']

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'

- name: Install dependencies, typecheck, lint, format, test
- run: |
npm ci
npm run typecheck
npm run lint
npx prettier --check .
npx jest --ci --coverage
env:
CI: true
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
.build
.open-next
sst-env.d.ts
.docusaurus
coverage
10 changes: 9 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,13 @@
"singleQuote": true,
"printWidth": 100,
"jsxSingleQuote": true,
"singleAttributePerLine": true
"singleAttributePerLine": true,
"overrides": [
{
"files": "*.{yml,yaml}",
"options": {
"tabWidth": 2
}
}
]
}
4 changes: 2 additions & 2 deletions packages/client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"strictNullChecks": true,
"strictNullChecks": true
},
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }],
"references": [{ "path": "./tsconfig.node.json" }]
}
4 changes: 2 additions & 2 deletions packages/connection-gateway/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"compilerOptions": {
"module": "CommonJS",
"moduleResolution": "Node",
"strictNullChecks": true,
},
"strictNullChecks": true
}
}
5 changes: 4 additions & 1 deletion packages/docs/src/components/Stoplight.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ interface StoplightProps {
export function Stoplight({ apiDescriptionUrl }: Readonly<StoplightProps>) {
return (
<div className={(styles as { stoplight: string }).stoplight}>
<ApiComponent apiDescriptionUrl={apiDescriptionUrl} router="hash" />
<ApiComponent
apiDescriptionUrl={apiDescriptionUrl}
router='hash'
/>
</div>
);
}
Expand Down

0 comments on commit b5f6460

Please sign in to comment.