-
Notifications
You must be signed in to change notification settings - Fork 369
40 lines (33 loc) · 830 Bytes
/
test.yml
File metadata and controls
40 lines (33 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: CI
on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 24
cache: yarn
- name: Install Node.js dependencies
run: yarn install --frozen-lockfile
- name: Lint
run: yarn lint
- name: Type-check
run: yarn typecheck
- name: Run tests
run: yarn test
- name: Build (verify .d.ts emission)
run: yarn build
- name: Smoke-test built artifact
run: node ./__tests__/integration/smoke.cjs