Skip to content

Commit

Permalink
fix(ci): Use submodules for actions
Browse files Browse the repository at this point in the history
I've moved to forgejo which uses https://code.forgejo.org/actions/ by
default
  • Loading branch information
jiriks74 committed Dec 12, 2024
1 parent df0a0b5 commit 6d75ca6
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/actions/cache-apt-pkgs-action
Submodule cache-apt-pkgs-action added at f2fc6d
1 change: 1 addition & 0 deletions .github/workflows/actions/cargo-install
Submodule cargo-install added at 904927
9 changes: 6 additions & 3 deletions .github/workflows/luacheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
11 changes: 7 additions & 4 deletions .github/workflows/stylua.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[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
[submodule ".github/workflows/actions/cargo-install"]
path = .github/workflows/actions/cargo-install
url = https://github.com/baptiste0928/cargo-install

0 comments on commit 6d75ca6

Please sign in to comment.