Skip to content

Latest commit

 

History

History
66 lines (60 loc) · 2.79 KB

README.md

File metadata and controls

66 lines (60 loc) · 2.79 KB

gitHubWorkShop

GitHub-CI Report

Info

Example of use GitHub actions for CI with testing tools, which using Github pages as test rabbit.

Tools

This project starts on remote server (Ubuntu-latest) some tools which testing GitHub Pages Tools:

Github Actions

Github-CI

For building and starting tools I using GitHub Actions. Everything for GitHub Actions is setup in .github/workflows/GitHub-CI.yml Example for starting RF in docker:

robotWebTest:
    name: robotWebTest
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Docker for RF
        run: |
          docker run --shm-size=1g \
          -v ${{ github.workspace }}/test/RobotFrameWork:/opt/robotframework/reports:Z \
          -v ${{ github.workspace }}/test/RobotFrameWork:/opt/robotframework/tests:Z \
          -e BROWSER=chrome \
          --user=1001:1001 \
          ppodgorsek/robot-framework:latest

Report CI

For reporting We are using reportportal. How we pull reports log you can see in .github/workflows/Report.yml Example how to report from Postaman (Docker include):

  postmanDockerRun:
    name: Postman test with report # Docker Power
    runs-on: ubuntu-latest
    steps:
      - uses: actions/[email protected]
      - name: Postman
        run: |
          docker pull reportportal/newman      
          docker run -t reportportal/newman run https://raw.githubusercontent.com/procesor2017/gitHubWorkShop/master/test/Postman/TestApi.json \
          -r @reportportal/reportportal \
          --reporter-@reportportal/reportportal-debug=true \
          --reporter-@reportportal/reportportal-endpoint=http://portal.tesena.com/api/v1 \
          --reporter-@reportportal/reportportal-token=${{ secrets.UUID }} \
          --reporter-@reportportal/reportportal-launch=${{ secrets.LAUNCH }} \
          --reporter-@reportportal/reportportal-project=${{ secrets.PROJECT }} \
          -x

Best link

There is links what you wanna see it