Skip to content

Commit d778712

Browse files
committed
Add typescript job to GitHub Actions
1 parent a7009ff commit d778712

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,40 @@ jobs:
4444
- name: Run tests
4545
run: yarn lint
4646

47+
typescript:
48+
name: Type checking
49+
runs-on: ubuntu-latest
50+
51+
steps:
52+
- name: Checkout
53+
uses: actions/checkout@v3
54+
55+
- name: Cache .yarn/cache
56+
uses: actions/cache@v3
57+
env:
58+
cache-name: yarn-cache
59+
with:
60+
path: .yarn/cache
61+
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
62+
restore-keys: |
63+
${{ runner.os }}-${{ env.cache-name }}
64+
65+
- name: Use Node.js
66+
uses: actions/setup-node@v3
67+
with:
68+
node-version: '18'
69+
70+
- name: Enable Corepack
71+
run: corepack enable
72+
73+
- name: Install dependencies
74+
run: yarn --immutable
75+
env:
76+
HUSKY: 0
77+
78+
- name: Run type checking
79+
run: yarn tsc
80+
4781
prettier:
4882
name: Prettier
4983
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)