-
Notifications
You must be signed in to change notification settings - Fork 85
57 lines (52 loc) · 1.5 KB
/
test.yaml
File metadata and controls
57 lines (52 loc) · 1.5 KB
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
47
48
49
50
51
52
53
54
55
56
57
name: CI test suite
on:
pull_request:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup Bun
uses: oven-sh/setup-bun@v2
# this caching step is kind of a wash
# downloading the cache adds a few seconds
# and then installing is a bit faster
- name: Cache bun dependencies
uses: actions/cache@v5
with:
path: ~/.bun/install/cache
key: bun-${{ runner.os }}-${{ hashFiles('bun.lock') }}
restore-keys: |
bun-${{ runner.os }}-
- name: Use Node.js 22.x
uses: actions/setup-node@v6
with:
node-version: "22.x"
- name: Install js deps (w/ bun)
run: bun install
- name: Enable turborepo build cache
uses: rharkor/caching-for-turbo@v2.3.11
# ------------------------------------------------------------
- name: ESLint
run: bun run lint
- name: Build libraries
run: bun run build:libs
- name: Run tests
run: bun run test:ci
intellij-plugin:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/intellij-plugin
steps:
- uses: actions/checkout@v6
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "temurin"
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build IntelliJ plugin
run: ./gradlew build