-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (39 loc) · 1.47 KB
/
CI.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
name: CI
on: [push, workflow_dispatch]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: install local npm packages
run: npm i --production=false
- name: run eslint
run: npm run eslint
unit-tests:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: download roblox install script
run: Invoke-WebRequest -Uri "https://raw.githubusercontent.com/OrbitalOwen/roblox-win-installer/master/install.py" -OutFile install.py
- name: download settings file
run: Invoke-WebRequest -Uri "https://raw.githubusercontent.com/OrbitalOwen/roblox-win-installer/master/GlobalSettings_13.xml" -OutFile GlobalSettings_13.xml
- name: install pip deps
run: pip install wget psutil
- name: install roblox
run: python install.py "${{ secrets.ROBLOSECURITY }}"
- name: install roblox-ts
run: npm i -g roblox-ts
- name: install local npm packages
run: npm i --production=false
- name: compile typescript code
run: rbxtsc --type=game
- name: install foreman
uses: rojo-rbx/setup-foreman@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: install foreman packages (rojo, run-in-roblox)
run: foreman install
- name: run rojo build
run: rojo build -o .\\unit_tests.rbxlx
- name: run tests
run: run-in-roblox --place .\\unit_tests.rbxlx --script .\\spec.server.lua