-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (41 loc) · 1.54 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
42
43
name: CI
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: install npm packages
uses: bahmutov/npm-install@v1
- name: run eslint
run: npm run eslint
- name: install selene
run: |
curl https://github.com/Kampfkarren/selene/releases/download/0.9.1/selene-linux -L -o selene
chmod +x ./selene
- name: run selene
run: ./selene ./src ./tests/src/
unit-tests:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- 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 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 .\\tests\\build.rbxlx .\\tests\\
- name: run tests
run: run-in-roblox --place .\\tests\\build.rbxlx --script .\\tests\\spec.lua