Add Alpine package runtime tests
This commit is contained in:
@@ -91,6 +91,7 @@ apk:smoke Install-test built packages from the local repository in D
|
||||
apk:test-install Test README installation instructions in a fresh Alpine container
|
||||
apk:test-shell Open an Alpine shell with the current local package build installed
|
||||
apk:update-generated Refresh packaged upstream examples and shell completions
|
||||
apk:runtime-test Run package-local Docker runtime tests against the local...
|
||||
gitea-workflow-build Run the Gitea build workflow locally through act as a pull_request event
|
||||
```
|
||||
|
||||
@@ -139,6 +140,14 @@ SKIP_BUILD=1 mise run apk:test-install
|
||||
SKIP_BUILD=1 mise run apk:test-shell
|
||||
```
|
||||
|
||||
Run package-local runtime tests:
|
||||
|
||||
```sh
|
||||
mise run apk:runtime-test
|
||||
ALPINE_PACKAGE=seaweedfs mise run apk:runtime-test
|
||||
ALPINE_VERSION=3.24 mise run apk:runtime-test
|
||||
```
|
||||
|
||||
### Adding Packages
|
||||
|
||||
Package path:
|
||||
@@ -152,6 +161,7 @@ Optional package hooks:
|
||||
```text
|
||||
packaging/alpine/local/<pkgname>/scripts/test-install.sh
|
||||
packaging/alpine/local/<pkgname>/scripts/update-generated-sources.sh
|
||||
packaging/alpine/local/<pkgname>/scripts/runtime-test.sh
|
||||
```
|
||||
|
||||
Start from the blueprint:
|
||||
@@ -222,6 +232,7 @@ Before opening a PR, run:
|
||||
mise run apk:publish-check
|
||||
mise run gitea-workflow-build
|
||||
mise run apk:test-install
|
||||
mise run apk:runtime-test
|
||||
```
|
||||
|
||||
Then test at least one installed role in the package shell:
|
||||
|
||||
Reference in New Issue
Block a user