diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 520e8d4..92d4b5f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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/ diff --git a/foreman.toml b/foreman.toml index 807b2b3..aa1f933 100644 --- a/foreman.toml +++ b/foreman.toml @@ -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"} diff --git a/multipack.toml b/multipack.toml new file mode 100644 index 0000000..63d88f3 --- /dev/null +++ b/multipack.toml @@ -0,0 +1,2 @@ +[rotriever] +publish_to = true diff --git a/rotriever.toml b/rotriever.toml index 521a452..d72f693 100644 --- a/rotriever.toml +++ b/rotriever.toml @@ -5,3 +5,6 @@ license = "Apache-2.0" content_root = "src" version = "4.0.0-rc.0" files = ["*", "!*.spec.lua"] + +[config] +registry_index = true