-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into dracut-fix
- Loading branch information
Showing
30 changed files
with
731 additions
and
573 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# PR Review workflows. | ||
# The intention is for these to only find *new* issues. | ||
|
||
name: pr-review | ||
on: | ||
pull_request: | ||
jobs: | ||
|
||
shellcheck-code: | ||
name: shellcheck grml-debootstrap | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: shellcheck | ||
uses: reviewdog/action-shellcheck@v1 | ||
with: | ||
github_token: ${{ secrets.github_token }} | ||
reporter: github-pr-review | ||
path: "." | ||
pattern: | | ||
chroot-script | ||
grml-debootstrap | ||
config | ||
tests/shellcheck-stub-debootstrap-variables | ||
check_all_files_with_shebangs: "false" | ||
|
||
shellcheck-tests: | ||
name: shellcheck test scripts | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: shellcheck | ||
uses: reviewdog/action-shellcheck@v1 | ||
with: | ||
github_token: ${{ secrets.github_token }} | ||
reporter: github-pr-review | ||
path: "." | ||
pattern: | | ||
tests/* | ||
check_all_files_with_shebangs: "false" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
name: test-build | ||
on: | ||
pull_request: | ||
concurrency: | ||
group: "${{ github.ref }}" | ||
cancel-in-progress: true | ||
jobs: | ||
build-debian: | ||
strategy: | ||
# Keep other matrix jobs running, even if one fails. | ||
fail-fast: false | ||
matrix: | ||
host_release: | ||
- unstable | ||
- trixie | ||
- bookworm | ||
- bullseye | ||
|
||
# We want a working shell, qemu, python and docker. Specific version should not matter (much). | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- run: ./tests/gha-build-deb.sh | ||
name: "Build .deb for ${{matrix.host_release}}" | ||
env: | ||
HOST_RELEASE: ${{matrix.host_release}} | ||
|
||
- name: Archive built .deb | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: deb-${{matrix.host_release}} | ||
if-no-files-found: error | ||
path: | | ||
*.deb | ||
test-debian: | ||
needs: build-debian | ||
strategy: | ||
# Keep other matrix jobs running, even if one fails. | ||
fail-fast: false | ||
matrix: | ||
host_release: | ||
- unstable | ||
- trixie | ||
- bookworm | ||
- bullseye | ||
|
||
release: | ||
- trixie | ||
- bookworm | ||
- bullseye | ||
- buster | ||
- stretch | ||
|
||
debootstrap: | ||
- '' | ||
- mmdebstrap | ||
|
||
exclude: | ||
# debootstrap in bullseye is too old. | ||
- host_release: bullseye | ||
release: trixie | ||
# unclear how to pass --no-check-gpg to mmdebstrap | ||
- release: stretch | ||
debootstrap: mmdebstrap | ||
|
||
# We want a working shell, qemu, python and docker. Specific version should not matter (much). | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Download built deb | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: deb-${{matrix.host_release}} | ||
|
||
- run: ./tests/build-vm-and-test.sh setup | ||
name: "Setup test environment" | ||
|
||
- run: ./tests/build-vm-and-test.sh run | ||
name: "Build VM image using grml-debootstrap on host ${{matrix.host_release}} for ${{matrix.release}} using debootstrap=${{matrix.debootstrap}}" | ||
env: | ||
HOST_RELEASE: ${{matrix.host_release}} | ||
RELEASE: ${{matrix.release}} | ||
DEBOOTSTRAP: ${{matrix.debootstrap}} | ||
|
||
- run: ./tests/build-vm-and-test.sh test | ||
name: "Test built VM image for ${{matrix.release}}" | ||
env: | ||
RELEASE: ${{matrix.release}} | ||
|
||
- name: Archive VM test results | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: vm-results-${{matrix.host_release}}-${{matrix.release}}-${{matrix.debootstrap}} | ||
if-no-files-found: error | ||
path: tests/results/ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
*.box | ||
packer_cache | ||
*_output | ||
qemu.img | ||
tests/dgoss | ||
tests/goss |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.