generated from ellisonleao/nvim-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (34 loc) · 904 Bytes
/
test.yml
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
41
42
43
44
45
46
name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Neovim
uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: stable
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version-file: ".bun-version"
- name: Install typescript-language-server
run: bun add -g typescript-language-server typescript
- name: Install dependencies
run: bun install --frozen-lockfile
- name: tsc version
run: bun x tsc --version
- name: Run typecheck
run: bun x tsc --noEmit
- name: Run eslint
run: bun x eslint .
- name: Run prettier check
run: bun x prettier --check .
- name: Run tests
run: bun test