Added linting and package resolution Gitea Actions workflows.
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
name: Audit
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 0 * * 1"
|
||||
push:
|
||||
paths:
|
||||
- config/*.conf
|
||||
- scripts/check-package-resolution.sh
|
||||
pull_request:
|
||||
paths:
|
||||
- config/*.conf
|
||||
- scripts/check-package-resolution.sh
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
package-resolution:
|
||||
name: Package Resolution
|
||||
runs-on: logaldeveloper-archlinux
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
|
||||
- name: Refresh pacman databases
|
||||
run: pacman -Sy --noconfirm
|
||||
|
||||
- name: Check package resolution in pacman
|
||||
run: bash ./scripts/check-package-resolution.sh
|
||||
@@ -0,0 +1,19 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
linting:
|
||||
name: Linting
|
||||
runs-on: logaldeveloper-archlinux
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
|
||||
- name: Check linting with ShellCheck
|
||||
run: git ls-files -z '*.sh' | xargs -0 -r shellcheck --external-sources
|
||||
Reference in New Issue
Block a user