depapp / IndoGitHubers

IndoGitHubers is an application that displays the GitHub rank of users in Indonesia.
https://indogithubers.com
73 stars 18 forks source link

[🧪] Upload artifact playwright report to gh-pages #47

Closed mazipan closed 1 day ago

mazipan commented 4 days ago

Currently we only save the report to the artifact, to check the report we need to download it first to our local computer.

I think it's better to just upload it to github-pages.

  publish_report:
    runs-on: ubuntu-latest
    needs: smoke-test
    permissions:
      pages: write
      id-token: write
    steps:
      - name: Deploy to GitHub Pages
        id: deployment
        uses: actions/deploy-pages@v4
        with:
          - artifact_name: 'playwright-report'

P.S: I'm not sure, need to trial-and-error

Reference: https://github.com/actions/deploy-pages

depapp commented 4 days ago

it's possible mas @mazipan , i have implemented it in another repository https://github.com/depapp/sample-bdd-project-in-katalon-latest-version/blob/2976876caa5675c93e30df3932ade37bdc42c053/.github/workflows/main.yml#L30

the test report will be available at https://depapp.github.io/sample-bdd-project-in-katalon-latest-version/