ci: remove container, run directly on Ubuntu host
This commit is contained in:
parent
436c150419
commit
ba42701d43
2 changed files with 15 additions and 20 deletions
16
.github/workflows/luacheck.yaml
vendored
16
.github/workflows/luacheck.yaml
vendored
|
|
@ -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 .
|
||||
|
|
|
|||
19
.github/workflows/stylua.yaml
vendored
19
.github/workflows/stylua.yaml
vendored
|
|
@ -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 .
|
||||
|
|
|
|||
Loading…
Reference in a new issue