-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (36 loc) · 1.42 KB
/
CI.yml
File metadata and controls
38 lines (36 loc) · 1.42 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
name: CI
on: [push, workflow_dispatch]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- 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
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 foreman
uses: rojo-rbx/setup-foreman@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: install foreman packages (rojo, run-in-roblox)
run: foreman install
- name: install wally packages
run: wally install
- name: run rojo build
run: rojo build -o .\\unit_tests.rbxlx .\\unit-tests.project.json
- name: run tests
run: run-in-roblox --place .\\unit_tests.rbxlx --script .\\spec.server.lua