N21-1250 CTL board element #6050
Workflow file for this run
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
name: Unstable e2e | |
on: | |
pull_request: | |
branches: | |
- main | |
types: [labeled, synchronize] | |
workflow_dispatch: | |
label: | |
name: 'run unstable tests' | |
permissions: | |
contents: read | |
jobs: | |
end-to-end-unstable-tests: | |
runs-on: ubuntu-latest | |
# run the action, when label 'run unstable tests' has been set | |
if: "contains( github.event.label.name , 'run unstable tests' ) || contains( github.event.pull_request.labels.*.name , 'run unstable tests' )" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set BRANCH_NAME on pull_request | |
run: | | |
echo ${{ github.head_ref }} | |
branch_name=${{ github.head_ref }} | |
echo "BRANCH_NAME=$branch_name" >> $GITHUB_ENV | |
- name: run git change | |
run: | | |
git config --global url."https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/".insteadOf "https://github.com/" | |
git config --global url."https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/".insteadOf "ssh://[email protected]/" | |
git config --global url."https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/".insteadOf "[email protected]:" | |
- name: execute tests | |
run: curl "https://raw.githubusercontent.com/hpi-schul-cloud/end-to-end-tests/main/scripts/ci/fetch.github.sh" | bash -s unstable | |
env: | |
ES_USER: ${{ secrets.ES_USER }} | |
ES_PASSWORD: ${{ secrets.ES_PASSWORD }} | |
SECRET_ES_MERLIN_USERNAME: ${{ secrets.SECRET_ES_MERLIN_USERNAME }} | |
SECRET_ES_MERLIN_PW: ${{ secrets.SECRET_ES_MERLIN_PW }} | |
DOCKER_ID: ${{ secrets.DOCKER_ID }} | |
MY_DOCKER_PASSWORD: ${{ secrets.MY_DOCKER_PASSWORD }} | |
- uses: actions/upload-artifact@v2 | |
name: upload results | |
if: always() | |
with: | |
name: report | |
path: end-to-end-tests/reports | |