-
-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (43 loc) · 1.15 KB
/
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
47
48
49
50
51
52
53
54
55
name: Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.20']
node-version: ['16.x', '18.x']
steps:
- uses: actions/checkout@v3
- name: Set up Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "jotbot"
- name: Set up pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Set up Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
cache-dependency-path: './packages/pnpm-lock.yaml'
- name: Install jotbot-ts
run: |
cd packages/jotbot
pnpm i
pnpm build
pnpm link -g
- name: Dependencies
run: go get ./...
- name: Test
run: go test ./...