1
0
Fork 0
mirror of https://github.com/jiriks74/presence.nvim synced 2024-12-27 18:42:35 +01:00

fix(ci): Use submodules for actions

I've moved to forgejo which uses https://code.forgejo.org/actions/ by
default
This commit is contained in:
Jiří Štefka 2024-12-12 16:42:27 +01:00
parent df0a0b52cd
commit a4bde94b49
Signed by: jiriks74
GPG key ID: 1D5E30D3DB2264DE
5 changed files with 23 additions and 7 deletions

@ -0,0 +1 @@
Subproject commit f2fc6d1af4d6abf8a4dcd37fd74a9a15c2273b9f

@ -0,0 +1 @@
Subproject commit 904927dbe77864e0f2281519fe9d5bd097a220b3

View file

@ -4,13 +4,16 @@ jobs:
Luacheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Update repositories
run: sudo apt update
- name: Install Luacheck
uses: awalsh128/cache-apt-pkgs-action@latest
uses: ./.github/workflows/actions/cache-apt-pkgs-action
with:
packages: lua-check
- name: Checkout
uses: actions/checkout@v4
- name: Luacheck linter
run: luacheck --config .luacheckrc .

View file

@ -4,20 +4,23 @@ jobs:
StyLua:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Update repositories
run: sudo apt update
- name: Install cargo
uses: awalsh128/cache-apt-pkgs-action@latest
uses: ./.github/workflows/actions/cache-apt-pkgs-action
with:
packages: cargo libssh2-1
- name: Install StyLua from crates.io
uses: baptiste0928/cargo-install@v3
uses: ./.github/workflows/actions/cargo-install
with:
crate: stylua
version: 0.20.0
- name: Checkout
uses: actions/checkout@v4
- name: Check code formatting
run: stylua -c .

8
.gitmodules vendored Normal file
View file

@ -0,0 +1,8 @@
[submodule ".github/workflows/actions/cache-apt-pkgs-action"]
path = .github/workflows/actions/cache-apt-pkgs-action
url = https://github.com/awalsh128/cache-apt-pkgs-action
branch = master
[submodule ".github/workflows/actions/cargo-install"]
path = .github/workflows/actions/cargo-install
url = https://github.com/baptiste0928/cargo-install
branch = main