Merge pull request #272 from frostyard/auto-update-packages #452
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Validate Scripts and Config | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: {} | |
| jobs: | |
| shell-lint: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| - name: Install shellcheck | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y shellcheck | |
| - name: Lint shell scripts | |
| run: | | |
| git ls-files '*.sh' '*.chroot' | xargs -r shellcheck -S error -s bash -x | |
| mkosi-config-sanity: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| - name: setup-mkosi | |
| uses: systemd/mkosi@3c3a08fb07d27fbe473625aa0725655cfb2c68bf | |
| - name: Validate mkosi configuration summaries | |
| run: | | |
| sudo mkosi summary > /dev/null | |
| for profile in cayo cayoloaded snow snowloaded snowfield snowfieldloaded; do | |
| sudo mkosi --profile "$profile" summary > /dev/null | |
| done |