Skip to content

[MIM-1971] Fixed texts in om statistikken #2211

[MIM-1971] Fixed texts in om statistikken

[MIM-1971] Fixed texts in om statistikken #2211

Workflow file for this run

name: 'Deploy to Test'
on:
pull_request:
push:
branches:
- 'MIMIR-1227_updates-and-manual-deploy'
workflow_dispatch: # Allows the workflow to be manually triggered.
concurrency:
group: mimir-test
cancel-in-progress: false
jobs:
deploy_to_test:
name: 'Deploy to Test'
runs-on: 'ubuntu-latest'
steps:
- id: build_app
uses: enonic/release-tools/build-and-publish@master
with:
skipPublishing: true
- id: deploy_app_to_XP
uses: 'enonic/action-app-deploy@main'
with:
# Secrets from Github repository
url: ${{ secrets.ENONIC_TEST_URL }}
username: ${{ secrets.ENONIC_USER }}
password: ${{ secrets.ENONIC_TEST_PASS }}
client_cert: ${{ secrets.ENONIC_CERT }}
client_key: ${{ secrets.ENONIC_KEY }}
app_jar: "./build/libs/*.jar"
- name: Upload artifacts
id: upload_artifacts
if: success()
uses: actions/upload-artifact@v4
with:
name: mimir-test-${{ github.run_number }}
path: "./build/libs/*.jar"
- name: Send failure message to Slack
id: slack_failure
if: failure()
uses: slackapi/slack-github-action@v1
with:
payload: |
{
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": "${{ github.workflow }} in ${{ github.repository }}"
}
},
{
"type": "context",
"elements": [
{
"type": "image",
"image_url": "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png",
"alt_text" : "Github logo"
},
{
"type": "mrkdwn",
"text": "Run by: *${{ github.actor }}* on: *${{ github.ref_name }}*"
}
]
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "💣 Build ${{ github.run_number }} is a *${{ job.status }}*, and that's cool!\nIf you want to fix it, start by looking at the <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|workflow output>"
}
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_MIMIR_UTV }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
mabl_test:
# Run this job after deploy is finished, and only run if deploy succeeded
needs: deploy_to_test
if: ${{ always() && contains(join(needs.*.result, ','), 'success') }}
runs-on: ubuntu-latest
container: node:lts
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Branch name and commit hash
run: |
echo running on branch ${GITHUB_HEAD_REF##*/} or ${GITHUB_REF##*/}
echo running $(echo $GITHUB_SHA | cut -c1-8) and ${GITHUB_SHA}
- name: install mabl
run: npm install -g @mablhq/mabl-cli
- name: mabl end-to-end test - TEST
run: mabl deployments create --api-key ${{ secrets.MABLAPIKEY }} --application-id ${{ secrets.MABLAPPID }} --environment-id ${{ secrets.MABLENVTEST }} --labels MIMIR --revision ${{ github.sha }} --await-completion