Skip to content

Commit

Permalink
Add github action and change magic shebang
Browse files Browse the repository at this point in the history
  • Loading branch information
mogenson committed Jan 8, 2024
1 parent adbe6cc commit 8d082f6
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Lint Code Base
on:
pull_request: ~
push:
branches:
- main

jobs:
build:
name: Lint Code Base
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Lint Code Base
uses: mrcjkb/lua-typecheck-action@v0.2.0
with:
configpath: ".luarc.json"
directories: "."
8 changes: 8 additions & 0 deletions .luarc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"diagnostics":
{
"globals": [],
"neededFileStatus": { "codestyle-check": "Any" },
},
"runtime.version": "Lua 5.1",
}
5 changes: 2 additions & 3 deletions LuaRepl.app/Contents/MacOS/main.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#!/bin/sh
_=[[
--[[ 2>/dev/null
resources="$(dirname "$0")/../Resources"
export LUA_PATH="$resources/?.lua;$resources/?/init.lua"
exec "$resources/luajit" "$0" "$@"
]]
_ = nil
--]]

local objc = require("objc")
local repl = require("repl")
Expand Down

0 comments on commit 8d082f6

Please sign in to comment.