1
0
Fork 0
mirror of https://github.com/jiriks74/presence.nvim synced 2024-12-29 19:32:05 +01:00
presence.nvim/.github/workflows/stylua.yml
Jiří Štefka d32c67370f
All checks were successful
Luacheck / Luacheck (push) Successful in 11s
StyLua / StyLuacheck (push) Successful in 16s
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
2024-04-17 18:38:05 +02:00

23 lines
553 B
YAML

name: StyLua
on: [push, pull_request]
jobs:
StyLuacheck:
runs-on: ubuntu-latest
steps:
- name: Update repositories
run: sudo apt update
- name: Install cargo
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: cargo
- name: Install StyLua from crates.io
uses: baptiste0928/cargo-install@v3
with:
crate: stylua
version: 0.20.0
- name: Checkout
uses: actions/checkout@v3
- name: Check code formatting
run: stylua -c .