-
Notifications
You must be signed in to change notification settings - Fork 8
48 lines (41 loc) · 961 Bytes
/
UnitTests.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
name: UnitTests
on:
pull_request:
push:
branches:
- master
jobs:
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout luau-ast repo
uses: actions/checkout@v4
with:
path: luau-ast
- name: Checkout roblox-ts repo
uses: actions/checkout@v4
with:
repository: roblox-ts/roblox-ts
ref: lune
path: roblox-ts
- name: Install Foreman
uses: Roblox/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup luau-ast repo
run: |
cd luau-ast
npm install
npm run build
- name: Setup roblox-ts repo
run: |
cd roblox-ts
foreman install
npm install
npm install ../luau-ast
npm run update-test-types
- name: Run Tests
run: |
cd roblox-ts
npm test