-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: Fix GitHub archive URLs * Fix upload filename * Add change file
- Loading branch information
1 parent
bea6bce
commit e1ba256
Showing
6 changed files
with
35 additions
and
24 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,5 @@ | ||
kind: Documentation | ||
body: Fix GitHub archive URLs in integration test docs | ||
time: 2023-09-05T08:34:10.769144-06:00 | ||
custom: | ||
Issue: "964" |
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 |
---|---|---|
|
@@ -192,17 +192,17 @@ jobs: | |
|
||
# Test Limesurvey/LimeSurvey branches | ||
- python-version: "3.11" | ||
ref: 5.x | ||
ref: refs/heads/5.x | ||
context: https://github.com/martialblog/docker-limesurvey.git#master:5.0/apache | ||
database: postgres | ||
|
||
- python-version: "3.11" | ||
ref: develop | ||
ref: refs/heads/develop | ||
context: https://github.com/martialblog/docker-limesurvey.git#master:6.0/apache | ||
database: postgres | ||
|
||
- python-version: "3.11" | ||
ref: master | ||
ref: refs/heads/master | ||
context: https://github.com/martialblog/docker-limesurvey.git#master:6.0/apache | ||
database: postgres | ||
|
||
|
@@ -251,7 +251,7 @@ jobs: | |
if: ${{ matrix.ref }} | ||
run: | | ||
wget https://github.com/LimeSurvey/LimeSurvey/archive/${{ matrix.ref }}.tar.gz -O ls.tar.gz -nv | ||
echo "LS_CHECKSUM=$(sha256sum ls.tar.gz | cut -d' ' -f1)" >> $GITHUB_ENV | ||
echo "LS_CHECKSUM=$(shasum -a 256 ls.tar.gz | cut -d' ' -f1)" >> $GITHUB_ENV | ||
- name: Set up Docker Buildx | ||
uses: docker/[email protected] | ||
|
@@ -266,7 +266,7 @@ jobs: | |
LS_IMAGE_TAG: ${{ matrix.image_tag }} | ||
LS_DOCKERFILE_CONTEXT: ${{ matrix.context }} | ||
LS_DOCKERFILE: Dockerfile | ||
LS_VERSION: ${{ matrix.ref }} | ||
LS_ARCHIVE_URL: "https://github.com/LimeSurvey/LimeSurvey/archive/${{ matrix.ref }}.tar.gz" | ||
COMPOSE_FILE: "\ | ||
docker-compose.yml\ | ||
${{ matrix.ref && ':docker-compose.ref.yml' }}\ | ||
|
@@ -291,6 +291,14 @@ jobs: | |
name: coverage-data | ||
path: ".coverage.*" | ||
|
||
- name: Generate badge filename | ||
if: always() | ||
id: badge-filename | ||
run: | | ||
REF=${{ matrix.image_tag || matrix.ref }} | ||
CLEAN_REF=${REF//\//-} | ||
echo "filename=badge-integration-${{ matrix.python-version }}-${CLEAN_REF}-${{ matrix.database }}.json" >> $GITHUB_OUTPUT | ||
- name: Update integration status badge | ||
if: always() | ||
id: badge | ||
|
@@ -300,15 +308,15 @@ jobs: | |
"label": "${{ matrix.image_tag || matrix.ref }}, ${{ matrix.database }}", | ||
"message": "${{ steps.nox-integration.outcome }}", | ||
"color": "${{ steps.nox-integration.outcome == 'success' && 'green' || 'red' }}" | ||
}' > badge-integration-${{ matrix.python-version }}-${{ matrix.image_tag || matrix.ref }}-${{ matrix.database }}.json | ||
}' > ${{ steps.badge-filename.outputs.filename }} | ||
- name: Deploy integration status badge | ||
uses: exuanbo/actions-deploy-gist@v1 | ||
if: always() && steps.badge.outcome == 'success' | ||
with: | ||
token: ${{ secrets.GIST_TOKEN }} | ||
gist_id: 02f3c72747cc609788c75c3cd32b4e97 | ||
file_path: badge-integration-${{ matrix.python-version }}-${{ matrix.image_tag || matrix.ref }}-${{ matrix.database }}.json | ||
file_path: ${{ steps.badge-filename.outputs.filename }} | ||
|
||
types: | ||
name: Type checking | ||
|
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