Skip to content

Commit

Permalink
bump iris-ci version to 0.6.3 (#7)
Browse files Browse the repository at this point in the history
* bump iris-ci version to 0.6.3

* bump iris-ci version to 0.6.3
  • Loading branch information
rfns authored Apr 3, 2024
1 parent 38a75f7 commit 820d117
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@ jobs:

steps:
- name: Clone this repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: app
- name: Build and run test suite
run: |
docker pull rfns/iris-ci:0.5.3
docker run -t --rm --name ci \
-e TESTPARAM_FIXTURE_ENV=/opt/ci/app/fixtures \
-e TEST_SUITE="tests" \
-v $PWD/app:/opt/ci/app rfns/iris-ci:0.6.1
-v $PWD/app:/opt/ci/app rfns/iris-ci:0.6.3
19 changes: 11 additions & 8 deletions .github/workflows/xml-asset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@ jobs:
sudo apt-get install -y dos2unix
- name: Convert line endings to LF (Unix format)
run: find . -type f -exec dos2unix {} \;
- name: Parse the tag
id: parse-tag
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Parse the repository metadata
id: repository-metadata
run: |
echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
echo "REPOSITORY_OWNER=$(echo "$GITHUB_REPOSITORY" | awk -F / '{print $1}')" >> $GITHUB_OUTPUT
echo "REPOSITORY_NAME=$(echo "$GITHUB_REPOSITORY" | awk -F / '{print $2}' | sed -e "s/:refs//")" >> $GITHUB_OUTPUT
- name: Import this repository and generate XML artifacts
run: |
touch $PWD/app/dotenv.xml
Expand All @@ -36,15 +39,15 @@ jobs:
-v $PWD/app:/opt/ci/app \
-v $PWD/iris-ci-xml/ci/App/Installer.cls:/opt/ci/App/Installer.cls \
-v $PWD/iris-ci-xml/ci/Runner.cls:/opt/ci/Runner.cls \
-e PORT_CONFIGURATION_PROJECTNAME="dotenv" \
-e PORT_CONFIGURATION_PROJECTNAME="${{ steps.repository-metadata.outputs.REPOSITORY_NAME }}" \
-e PORT_CONFIGURATION_LOGLEVEL=1 \
-e CI_XML_FLAGS="/exportversion=2016.2" \
rfns/iris-ci:0.6.1
rfns/iris-ci:0.6.3
- name: Retrieve the latest asset upload url
id: release-asset-metadata
run: |
upload_url=$(curl -s -X GET -L -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/$GITHUB_REPOSITORY/releases/latest | jq -r '. | .upload_url')
echo ::set-output name=UPLOAD_URL::$upload_url
upload_url=$(curl -s -X GET -L -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/$GITHUB_REPOSITORY/releases/tags/${{ steps.repository-metadata.outputs.VERSION }} | jq -r '. | .upload_url')
echo "UPLOAD_URL=$(echo "$upload_url")" >> $GITHUB_OUTPUT
- name: Upload release asset
id: release-asset-upload
uses: actions/upload-release-asset@v1
Expand All @@ -53,5 +56,5 @@ jobs:
with:
upload_url: ${{ steps.release-asset-metadata.outputs.UPLOAD_URL }}
asset_path: app/dotenv.xml
asset_name: dotenv-${{ steps.parse-tag.outputs.VERSION }}.xml
asset_name: dotenv-${{ steps.repository-metadata.outputs.VERSION }}.xml
asset_content_type: application/xml

0 comments on commit 820d117

Please sign in to comment.