forked from Balatro-Multiplayer/BalatroMultiplayer
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (30 loc) · 852 Bytes
/
maindev.yml
File metadata and controls
38 lines (30 loc) · 852 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Test Multiplayer Mod
on:
push:
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Lua
uses: leafo/gh-actions-lua@v10
with:
luaVersion: "5.4"
- name: Setup LuaRocks
run: |
sudo apt-get update
sudo apt-get install -y luarocks lua5.4 liblua5.4-dev
- name: Install Busted
run: |
luarocks --lua-version=5.4 install --local busted
echo "$HOME/.luarocks/bin" >> "$GITHUB_PATH"
- name: Syntax of all Lua files
run: |
for file in $(find . -type f -name "*.lua" -not -path "./.git/*"); do
echo "Checking $file"
lua -e "assert(loadfile('$file'))"
done
- name: Run Busted tests
run: busted --pattern='_test%.lua$' tests