Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup GitHub Actions for build and tests #238

Merged
merged 3 commits into from
Nov 17, 2023
Merged

Setup GitHub Actions for build and tests #238

merged 3 commits into from
Nov 17, 2023

Conversation

zeha
Copy link
Member

@zeha zeha commented Nov 11, 2023

Known todos/questions:

  • matrix build with multiple RELEASEs and multiple HOST_RELEASEs
  • add goss.tap to artifacts?
  • add .deb to artifacts?

@zeha zeha marked this pull request as ready for review November 11, 2023 14:33
@zeha zeha changed the title Draft: Setup github actions Draft: Setup github actions for tests Nov 12, 2023
@zeha zeha requested a review from mika November 12, 2023 19:30
@zeha zeha changed the title Draft: Setup github actions for tests Setup GitHub Actions for build and tests Nov 12, 2023
@zeha zeha mentioned this pull request Nov 13, 2023
Copy link
Member

@mika mika left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really only nitpicks, awesome work! Thanks for taking care! ❤️

grml-debootstrap Show resolved Hide resolved
tests/build-vm-and-test.sh Outdated Show resolved Hide resolved
tests/build-vm-and-test.sh Outdated Show resolved Hide resolved
set -eu -o pipefail

if [ -z "${1:-}" ] || [ "${1:-}" == "--help" ] || [ "${1:-}" == "help" ]; then
echo "Usage: $0 setup"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

>&2 maybe in lines 11-14?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usage output on stderr is a bit meh IMO, but see below

echo " then: $0 run"
echo " then: $0 test"
echo "WARNING: $0 is potentially dangerous and may destroy the host system and/or any data."
exit 0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we maybe exit 1 then?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've split the "no parameters case" from "--help" and made that exit 1

tests/docker-install-deb.sh Outdated Show resolved Hide resolved
tests/gha-build-deb.sh Outdated Show resolved Hide resolved
tests/test-vm.sh Outdated Show resolved Hide resolved
.github/workflows/test-build.yml Show resolved Hide resolved
.github/workflows/test-build.yml Show resolved Hide resolved
@mika mika merged commit 89f05ac into grml:master Nov 17, 2023
38 checks passed
@mika
Copy link
Member

mika commented Nov 17, 2023

Awesome work, merged, thanks @zeha! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants