mirror of
https://github.com/jiriks74/presence.nvim
synced 2024-11-23 12:27:50 +01:00
fix(ci/cd): Use cache, Luacheck not working on Gitea (#47)
* feat(ci/cd): Make workflows compatible with medium act images for reference: https://nektosact.com/usage/runners.html * fix(ci/cd): use sudo to install cargo * fix(ci/cd): Luacheck failing install on Gitea Install luacheck using apt and cache the install * feat(ci/cd): Cache apt install cargo * fix(ci/cd): remove unnecessary comments * [69] Make workflow compatible with medium act images https://openproject.stefka.eu/work_packages/69
This commit is contained in:
parent
655aa1d9c7
commit
d32c67370f
8
.github/workflows/luacheck.yml
vendored
8
.github/workflows/luacheck.yml
vendored
@ -4,7 +4,13 @@ jobs:
|
|||||||
Luacheck:
|
Luacheck:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Update repositories
|
||||||
|
run: sudo apt update
|
||||||
|
- name: Install luarocks
|
||||||
|
uses: awalsh128/cache-apt-pkgs-action@latest
|
||||||
|
with:
|
||||||
|
packages: lua-check
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Luacheck linter
|
- name: Luacheck linter
|
||||||
uses: lunarmodules/luacheck@v1
|
run: luacheck --config .luacheckrc .
|
||||||
|
6
.github/workflows/stylua.yml
vendored
6
.github/workflows/stylua.yml
vendored
@ -4,8 +4,12 @@ jobs:
|
|||||||
StyLuacheck:
|
StyLuacheck:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Update repositories
|
||||||
|
run: sudo apt update
|
||||||
- name: Install cargo
|
- name: Install cargo
|
||||||
run: sudo apt update && sudo apt install -y cargo
|
uses: awalsh128/cache-apt-pkgs-action@latest
|
||||||
|
with:
|
||||||
|
packages: cargo
|
||||||
|
|
||||||
- name: Install StyLua from crates.io
|
- name: Install StyLua from crates.io
|
||||||
uses: baptiste0928/cargo-install@v3
|
uses: baptiste0928/cargo-install@v3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user