ci: remove container, run directly on Ubuntu host
Some checks failed
Luacheck / luacheck (push) Failing after 12s
StyLua / stylua (push) Failing after 2s

This commit is contained in:
Jeremie Fraeys 2026-02-08 15:12:16 -05:00
parent 436c150419
commit ba42701d43
No known key found for this signature in database
2 changed files with 15 additions and 20 deletions

View file

@ -11,13 +11,11 @@ on:
jobs:
luacheck:
runs-on: self-hosted
container:
image: alpine:latest
steps:
- uses: actions/checkout@v4
- run: apk add --no-cache lua5.1 luarocks5.1 git
shell: /bin/sh
- run: luarocks-5.1 install luacheck
shell: /bin/sh
- run: luacheck .
shell: /bin/sh
- run: |
if ! command -v luacheck &> /dev/null; then
sudo apt-get update
sudo apt-get install -y lua-check
fi
- run: git clone --depth=1 $GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git repo
- run: cd repo && luacheck .

View file

@ -11,16 +11,13 @@ on:
jobs:
stylua:
runs-on: self-hosted
container:
image: alpine:latest
steps:
- uses: actions/checkout@v4
- run: apk add --no-cache curl unzip git
shell: /bin/sh
- run: |
curl -L -o stylua.zip "https://github.com/JohnnyMorganz/StyLua/releases/latest/download/stylua-linux.zip"
unzip stylua.zip
chmod +x stylua
shell: /bin/sh
- run: ./stylua --check .
shell: /bin/sh
if ! command -v stylua &> /dev/null; then
curl -L -o /tmp/stylua.zip "https://github.com/JohnnyMorganz/StyLua/releases/latest/download/stylua-linux.zip"
unzip /tmp/stylua.zip -d /tmp
sudo mv /tmp/stylua /usr/local/bin/
rm /tmp/stylua.zip
fi
- run: git clone --depth=1 $GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git repo
- run: cd repo && stylua --check .