From b9e69b70c496905baeb61ad365e4917b478e8b4f Mon Sep 17 00:00:00 2001 From: David Leal Date: Sat, 9 Sep 2023 09:26:38 -0600 Subject: [PATCH] Use old Travis CI configurations in GitHub Actions (#36) --- .github/workflows/build.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 817e409..600d224 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,8 +4,18 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@master - - name: lint - uses: Roang-zero1/factorio-mod-luacheck@master - with: - luacheckrc_url: "" + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + + - name: Install LuaRocks + run: | + sudo apt-get update -qq + sudo apt-get install -qqq luarocks + - name: Install pre-commit and LuaCheck + run: | + pip3 install pre-commit + luarocks install --local luacheck + - name: Run LuaCheck with pre-commit + run: | + pre-commit run --all-files + $HOME/.luarocks/bin/luacheck .