Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

APT-606 - Change Foreman To Install Internal Mirrors Instead Of External Tools APT-578 Upgrade setup-foreman to v3 #265

APT-606 - Change Foreman To Install Internal Mirrors Instead Of External Tools APT-578 Upgrade setup-foreman to v3

APT-606 - Change Foreman To Install Internal Mirrors Instead Of External Tools APT-578 Upgrade setup-foreman to v3 #265

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Roblox/setup-foreman@v3
with:
version: "^1.0.1"
token: ${{ secrets.GITHUB_TOKEN }}
- name: Download global Roblox types
shell: bash
run: curl -O https://raw.githubusercontent.com/JohnnyMorganz/luau-analyze-rojo/master/globalTypes.d.lua
- name: Analyze
shell: bash
run: luau-analyze --project=default.project.json --defs=globalTypes.d.lua --defs=testez.d.lua src/
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: roblox-actionscache/leafo-gh-actions-lua@v8
with:
luaVersion: "5.1"
- uses: roblox-actionscache/leafo-gh-actions-luarocks@v4
- name: get foreman and run foreman install
uses: Roblox/setup-foreman@v3
with:
version: "^1.0.1"
token: ${{ secrets.GITHUB_TOKEN }}
# useful for debugging differences between CI and local environment
- name: check versions
shell: bash
run: |
foreman list
- name: use rojo to build project
shell: bash
run: rojo build default.project.json --output model.rbxmx
- name: Linting and Style Checking
shell: bash
run: |
selene src benchmarks examples
stylua -c src benchmarks examples
- name: Install dependencies
run: |
luarocks install luafilesystem
luarocks install luacov
luarocks install luacov-reporter-lcov
- name: Install and run darklua
run: darklua process src/ src/ --format retain-lines
- name: Test
run: |
lua -lluacov bin/spec.lua
luacov -r lcov
- name: Report to Coveralls
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: luacov.report.out