Skip to content

Instantly share code, notes, and snippets.

@LastTalon
Created November 1, 2020 00:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LastTalon/0bd80cc2673069b4bc30d1f3034c574c to your computer and use it in GitHub Desktop.
Save LastTalon/0bd80cc2673069b4bc30d1f3034c574c to your computer and use it in GitHub Desktop.
name: CI
on:
pull_request:
push:
branches:
- master
jobs:
lemur:
name: Lemur Testing
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v2
with:
submodules: true
- name: Download Lemur
uses: actions/checkout@v2
with:
repository: LPGhatguy/lemur
ref: "master"
path: lemur
submodules: true
- name: Install Lua
uses: leafo/gh-actions-lua@v6
with:
luaVersion: "5.1"
- name: Install LuaRocks
uses: leafo/gh-actions-luarocks@v2
- name: Install Lua Dependencies
run: |
luarocks install luacov
luarocks install luacov-reporter-lcov
luarocks install luafilesystem
luarocks install dkjson
luarocks install luasocket
luarocks install bit32
- name: Run Tests
run: |
lua -lluacov <Lemur testing script>
luacov -r lcov
- name: Report Coverage
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: luacov.report.out
roblox:
name: Roblox Testing
runs-on: windows-latest
steps:
- name: Checkout Project
uses: actions/checkout@v2
with:
submodules: true
- name: Download Roblox Installer
uses: actions/checkout@v2
with:
repository: OrbitalOwen/roblox-win-installer
path: roblox-win-installer
submodules: true
- name: Install Foreman
uses: Roblox/setup-foreman@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Python Dependencies
run: |
python -m pip install --upgrade pip
pip install -r roblox-win-installer/requirements.txt
- name: Install Roblox
run: |
cd roblox-win-installer
if ([string]::IsNullOrEmpty($env:ROBLOSECURITY)) {
$env:ROBLOSECURITY = "<public backup ROBLOSECURITY token>"
}
python install.py $env:ROBLOSECURITY
env:
ROBLOSECURITY: ${{ secrets.ROBLOSECURITY }}
- name: Build
run: rojo build -o build.rbxlx
- name: Run Tests
run: run-in-roblox --place build.rbxlx --script <Roblox testing script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment