-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from Slamdunk/laminas_ci_workflow
Adopt Laminas CI workflow
- Loading branch information
Showing
14 changed files
with
4,050 additions
and
254 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
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,33 @@ | ||
name: "Continuous Integration" | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- '[0-9]+.[0-9]+.x' | ||
- 'refs/pull/*' | ||
tags: | ||
|
||
jobs: | ||
matrix: | ||
name: Generate job matrix | ||
runs-on: ubuntu-latest | ||
outputs: | ||
matrix: ${{ steps.matrix.outputs.matrix }} | ||
steps: | ||
- name: Gather CI configuration | ||
id: matrix | ||
uses: laminas/laminas-ci-matrix-action@v1 | ||
|
||
qa: | ||
name: QA Checks | ||
needs: [matrix] | ||
runs-on: ${{ matrix.operatingSystem }} | ||
strategy: | ||
fail-fast: false | ||
matrix: ${{ fromJSON(needs.matrix.outputs.matrix) }} | ||
steps: | ||
- name: ${{ matrix.name }} | ||
uses: laminas/laminas-continuous-integration-action@v1 | ||
with: | ||
job: ${{ matrix.job }} |
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,5 +1,4 @@ | ||
/.phpunit.result.cache | ||
/composer.lock | ||
/docs/html/ | ||
/laminas-mkdoc-theme.tgz | ||
/laminas-mkdoc-theme/ | ||
|
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,29 @@ | ||
#!/bin/bash -l | ||
|
||
if [[ -z "${GITHUB_BASE_REF}" ]]; then | ||
echo "Environment variable \"GITHUB_BASE_REF\" does not exist." | ||
|
||
exit 0 | ||
fi | ||
|
||
BRANCH_REGEX="[0-9]+\.[0-9]+\.x" | ||
|
||
if ! [[ "${GITHUB_BASE_REF}" =~ ${BRANCH_REGEX} ]]; then | ||
echo "Environment variable \"GITHUB_BASE_REF\" does not match expectations." | ||
echo "Must match ${BRANCH_REGEX}"; | ||
|
||
exit 0 | ||
fi | ||
|
||
COMPOSER_ROOT_VERSION=$(echo ${GITHUB_BASE_REF} | sed 's/\.x/\.99/g') | ||
|
||
echo "Determined composer root version as \"${COMPOSER_ROOT_VERSION}\"." | ||
|
||
if [[ true = "${GITHUB_ACTIONS}" ]]; then | ||
echo "Setting COMPOSER_ROOT_VERSION environment variable to \"${COMPOSER_ROOT_VERSION}\"." | ||
if [ ! -w "${GITHUB_ENV}" ]; then | ||
echo "Missing GITHUB_ENV environment variable. Cannot store COMPOSER_ROOT_VERSION to be available within the current check." | ||
exit 1 | ||
fi | ||
echo "COMPOSER_ROOT_VERSION=${COMPOSER_ROOT_VERSION}" >> "${GITHUB_ENV}" | ||
fi |
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,7 @@ | ||
#!/bin/bash | ||
|
||
WORKING_DIRECTORY=$2 | ||
JOB=$3 | ||
PHP_VERSION=$(echo "${JOB}" | jq -r '.php') | ||
|
||
${WORKING_DIRECTORY}/.laminas-ci/composer-root-version.sh || exit 1 |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.