Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: typescript ci #25

Merged
merged 6 commits into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/typescript.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: TypeScript

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

defaults:
run:
working-directory: typescript

env:
# enable debug logging
ACTIONS_RUNNER_DEBUG: true

jobs:
build-lint-test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: typescript
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Biome
uses: biomejs/setup-biome@v2
with:
version: latest

- name: Set up Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- name: Install dependencies
run: bun install

- name: Lint, Format, & Typecheck
working-directory: typescript
run: |
bun run lint
bun run format
bun run typecheck

- name: Build
run: bun run build

- name: Test
run: bun run test
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ __pycache__
python/dist
docs/book
*.gif
_
node_modules
dist
.env
!.env.example
_
Loading