Commit b892eee
authored
ci: Add release automation workflows and version management (valkey-io#94)
* ci: Add release automation workflows and version management
- Add commit-version-changes action to automate version bumping and commits
- Add create-version-pr action to create pull requests for version updates
- Add setup-release-branches action to initialize release branch structure
- Add test-pecl-package action to validate PECL package builds
- Add update-version-files action to update version constants across files
- Add validate-version action to ensure version consistency
- Update publish-pecl.yml workflow to support manual version bumping with dry-run mode
- Update test-pecl.yml and test-pie.yml workflows for improved CI/CD integration
- Update php_valkey_glide.h and valkey_glide.c with version management support
- Enable pull request triggers for version-related file changes to validate workflow changes
- Add workflow_dispatch inputs for version, release-branch, and dry-run testing
Signed-off-by: affonsov <67347924+affonsov@users.noreply.github.com>
* ci: Update PECL publishing workflow and validation actions
- Add prepare-version-bump job dependency to build-packages job for consistent version handling
- Update build-packages job condition to support pull_request events alongside existing triggers
- Modify checkout ref to use prepare-version-bump output for workflow_dispatch events
- Add PREPARE_VERSION environment variable to version extraction logic with fallback chain
- Add github-token input parameter to test-pecl-package action for API access
- Add PHP setup step with required extensions (tokenizer, json, ctype, iconv, mbstring)
- Add system dependencies installation for PECL testing (php-dev, build-essential, protobuf tools)
- Add shared dependencies installation step using install-shared-dependencies action
- Add cbindgen installation with caching support for Rust toolchain
- Add sccache setup for cross-user Rust caching
- Enhance validate-version action with expected-version input parameter
- Add source input to validate-version action for tracking version origin
- Improve version extraction logic to accept manual input with fallback to GitHub context
- Add detailed error messages with current event and ref information for debugging
Signed-off-by: affonsov <67347924+affonsov@users.noreply.github.com>
* ci: Refactor workflow actions to use environment variables
- Move GitHub context variables to env section in commit-version-changes action
- Move GitHub context variables to env section in publish-pecl workflow
- Move GitHub context variables to env section in setup-release-branches action
- Move GitHub context variables to env section in test-pecl-package action
- Move GitHub context variables to env section in update-version-files action
- Move GitHub context variables to env section in validate-version action
- Add conditional check to skip version validation for pull request events
- Simplify source parameter in validate-version call for manual releases
- Improve readability by using env variables instead of inline GitHub context references
Signed-off-by: affonsov <67347924+affonsov@users.noreply.github.com>
* fix lint
Signed-off-by: affonsov <67347924+affonsov@users.noreply.github.com>
* fix git commit and version
version will be updated in the dry run and commit will happen. the push will be skipped
Signed-off-by: affonsov <67347924+affonsov@users.noreply.github.com>
* Extract PECL package building into reusable action
- Create new build-pecl-package composite action for building PECL packages
- Extract package creation logic from publish-pecl workflow into dedicated action
- Add inputs for optional version parameter with fallback to package.xml
- Add outputs for package file path and version information
- Refactor publish-pecl workflow to use new build-pecl-package action
- Update test-pecl-package action to use new build action
Signed-off-by: affonsov <67347924+affonsov@users.noreply.github.com>
* fix lint yaml
Signed-off-by: affonsov <67347924+affonsov@users.noreply.github.com>
* - Update grep pattern to match full path "/src/client_constructor_mock.c" for accuracy
- Add fallback error message when tarball listing fails
Signed-off-by: affonsov <67347924+affonsov@users.noreply.github.com>
* - Remove verbose file verification logic for src/client_constructor_mock.c
Signed-off-by: affonsov <67347924+affonsov@users.noreply.github.com>
* - Add version update logic to package.xml when INPUT_VERSION is provided
Signed-off-by: affonsov <67347924+affonsov@users.noreply.github.com>
* - Change test version format from "-pr-test" suffix to "RC" (release candidate) for PECL compatibility
Signed-off-by: affonsov <67347924+affonsov@users.noreply.github.com>
* - Add protobuf-compiler package to apt-get install list in test workflow
Signed-off-by: affonsov <67347924+affonsov@users.noreply.github.com>
* - Install dependencies with --no-interaction flag for CI compatibility
Signed-off-by: affonsov <67347924+affonsov@users.noreply.github.com>
* - Remove `if: inputs.skip-package-creation != 'true'` condition from protobuf generation step
Signed-off-by: affonsov <67347924+affonsov@users.noreply.github.com>
* - Add `check-rc` step to validate if release tag matches RC pattern (-rc[0-9]+)
Signed-off-by: affonsov <67347924+affonsov@users.noreply.github.com>
---------
Signed-off-by: affonsov <67347924+affonsov@users.noreply.github.com>1 parent 1928211 commit b892eee
12 files changed
Lines changed: 1242 additions & 453 deletions
File tree
- .github/workflows
- build-pecl-package
- commit-version-changes
- create-version-pr
- setup-release-branches
- test-pecl-package
- update-version-files
- validate-version
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
0 commit comments