Last active
April 17, 2020 11:14
-
-
Save joonvena/80631e927d92d14ea68ad478b60505a3 to your computer and use it in GitHub Desktop.
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: Robot Framework | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Execute tests | |
uses: joonvena/[email protected] | |
env: | |
BROWSER: chrome | |
ROBOT_TESTS_DIR: ${{ github.workspace }}/robot_tests | |
ROBOT_REPORTS_DIR: ${{ github.workspace }}/reports | |
- name: Upload test results | |
uses: actions/upload-artifact@v1 | |
if: always() | |
with: | |
name: reports | |
path: ${{ github.workspace }}/reports | |
generate_report: | |
if: always() | |
needs: [test] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download reports | |
uses: actions/download-artifact@v1 | |
with: | |
name: reports | |
- name: Get Repository Owner & Name | |
run: | | |
export OWNER="$(echo "${{ github.repository }}" | awk -F / '{print $1}' | sed -e "s/:refs//")" | |
export REPO="$(echo "${{ github.repository }}" | awk -F / '{print $2}' | sed -e "s/:refs//")" | |
echo "::set-env name=REPOSITORY_OWNER::$OWNER" | |
echo "::set-env name=REPOSITORY_NAME::$REPO" | |
- name: Send report to commit | |
uses: joonvena/[email protected] | |
env: | |
GH_ACCESS_TOKEN: ${{ secrets.TOKEN }} | |
REPO_OWNER: ${{ env.REPOSITORY_OWNER }} | |
COMMIT_SHA: ${{ github.sha }} | |
REPOSITORY: ${{ env.REPOSITORY_NAME }} | |
REPORT_PATH: reports |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment