Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 44 additions & 58 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,78 +3,64 @@ name: CI
on:
push:
branches:
- master
- master

pull_request:
branches:
- master
- master

jobs:
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: Roblox/setup-foreman@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: Roblox/setup-foreman@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
allow-external-github-orgs: true

- name: Download global Roblox types
shell: bash
run: curl -s -O https://raw.githubusercontent.com/JohnnyMorganz/luau-lsp/master/scripts/globalTypes.d.lua
- name: Download global Roblox types
shell: bash
run: curl -s -O https://raw.githubusercontent.com/JohnnyMorganz/luau-lsp/master/scripts/globalTypes.d.lua

- name: Generate sourcemap for LSP
shell: bash
run: rojo sourcemap default.project.json -o sourcemap.json

- name: Analyze
shell: bash
run: luau-lsp analyze --sourcemap=sourcemap.json --defs=globalTypes.d.lua --defs=testez.d.lua src/
- name: Generate sourcemap for LSP
shell: bash
run: rojo sourcemap default.project.json -o sourcemap.json

- name: Analyze
shell: bash
run: luau-lsp analyze --sourcemap=sourcemap.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: Install dependencies
run: |
luarocks install luafilesystem
luarocks install cluacov
luarocks install luacov-reporter-lcov

- name: install code quality tools
uses: Roblox/setup-foreman@v1
with:
version: "^1.0.1"
token: ${{ secrets.GITHUB_TOKEN }}

- name: code quality
shell: bash
run: |
selene src
stylua -c src/

- name: run darklua
run: |
darklua process src/ src/ --format retain-lines

- name: Test
run: |
lua -lluacov test/lemur.lua
luacov -r lcov

- name: Report to Coveralls
uses: coverallsapp/github-action@1.1.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: luacov.report.out
- uses: actions/checkout@v4
with:
submodules: true

- uses: roblox-actionscache/leafo-gh-actions-lua@v8
with:
luaVersion: "5.1"

- uses: roblox-actionscache/leafo-gh-actions-luarocks@v4

- name: Install dependencies
run: |
luarocks install luafilesystem
luarocks install cluacov
luarocks install luacov-reporter-lcov

- name: install code quality tools
uses: Roblox/setup-foreman@v3
with:
version: "^1.0.1"
token: ${{ secrets.GITHUB_TOKEN }}
allow-external-github-orgs: true

- name: code quality
shell: bash
run: |
selene src
stylua -c src/
1 change: 0 additions & 1 deletion foreman.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ selene = { source = "Kampfkarren/selene", version = "=0.25.0" }
stylua = { source = "JohnnyMorganz/StyLua", version = "=0.18.1" }
luau-lsp = { source = "JohnnyMorganz/luau-lsp", version = "=1.23.0" }
wally = { source = "UpliftGames/wally", version = "=0.3.2" }
darklua = { source = "seaofvoices/darklua", version = "=0.10.2"}
2 changes: 2 additions & 0 deletions multipack.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[rotriever]
publish_to = true
3 changes: 3 additions & 0 deletions rotriever.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ license = "Apache-2.0"
content_root = "src"
version = "4.0.0-rc.0"
files = ["*", "!*.spec.lua"]

[config]
registry_index = true
Loading