Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Commit

Permalink
ci(workflow): add ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodong2008 committed Apr 26, 2024
1 parent aed0fee commit 528afdc
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: "CI"
on:
push:
branches:
- "**"
pull_request:
branches:
- main
workflow_dispatch:

jobs:
type-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 20

- name: Install dependencies
run: npm i

- name: Install typescript
run: npm install --global typescript

- name: TypeScript check
run: tsc --noEmit

format-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 20

- name: Install dependencies
run: npm i prettier

- name: Run prettier check
run: npx prettier --check .

0 comments on commit 528afdc

Please sign in to comment.