Skip to content

Commit

Permalink
Merge pull request #814 from IntersectMBO/feat/playwright-allure-reports
Browse files Browse the repository at this point in the history
Feat/playwright allure reports
  • Loading branch information
NabinKawan authored May 3, 2024
2 parents 6e09ecf + 5a70c94 commit f872b67
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/test_integration_playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ jobs:
path: tests/govtool-frontend/playwright/allure-results

env:
FRONTEND_URL: ${{vars.FRONTEND_URL}}
API_URL: ${{vars.API_URL}}
FRONTEND_URL: ${{vars.HOST_URL}}
API_URL: ${{vars.HOST_URL}}/api
DOCS_URL: ${{ vars.DOCS_URL }}
FAUCET_API_URL: ${{ vars.FAUCET_API_URL }}
FAUCET_API_KEY: ${{secrets.FAUCET_API_KEY}}
KUBER_API_URL: ${{vars.KUBER_API_URL}}
KUBER_API_KEY: ${{secrets.KUBER_API_KEY}}
WORKERS: ${{vars.WORKERS}}
WORKERS: ${{vars.TEST_WORKERS}}

publish-report:
runs-on: ubuntu-latest
Expand All @@ -78,7 +78,7 @@ jobs:
ref: gh-pages
path: gh-pages
repository: ${{vars.GH_PAGES}}
token: ${{ secrets.PERSONAL_TOKEN }}
ssh-key: ${{ secrets.DEPLOY_KEY }}

- name: Register report
id: register-project
Expand All @@ -89,7 +89,7 @@ jobs:
- if: steps.register-project.outputs.project_exists != 'true'
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.PERSONAL_TOKEN }}
ssh-key: ${{ secrets.DEPLOY_KEY }}
repository-name: ${{vars.GH_PAGES}}
branch: gh-pages
folder: project
Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
- name: Deploy report to Github Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.PERSONAL_TOKEN }}
ssh-key: ${{ secrets.DEPLOY_KEY }}
repository-name: ${{vars.GH_PAGES}}
branch: gh-pages
folder: build
Expand Down
18 changes: 18 additions & 0 deletions tests/govtool-frontend/playwright/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FRONTEND_URL=http://localhost:8080
API_URL=http://localhost:8080/api

DOCS_URL=https://docs.sanchogov.tools

# 1 for testnet, 0 for mainnet
NETWORK_ID=1,

# Create mock wallets if true
ONE_TIME_WALLET_SETUP=false,

# Faucet
FAUCET_API_URL=https://faucet.sanchonet.world.dev.cardano.org
FAUCET_API_KEY=

# Kuber
KUBER_API_URL=https://sanchonet.kuber.cardanoapi.io
KUBER_API_KEY=
29 changes: 29 additions & 0 deletions tests/govtool-frontend/playwright/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# GitHub Pages Deployment SSH Deploy Key Generation Guide

This guide walks you through the process of generating an SSH deploy key for GitHub Pages deployment and securely integrating it into your workflow.

## Generating the SSH Deploy Key

Execute the following command in your terminal to generate the SSH deploy key:

```bash
ssh-keygen -t rsa -b 4096 -C "$(git config user.email)" -f gh-pages -N ""
```

This command will generate two files:

- `gh-pages.pub`: Public key
- `gh-pages`: Private key

## Integration Steps

1. **Repository Settings:**

- Navigate to your repository settings.

2. **Adding Public Key to Deploy Keys: Add to** [`https://github.com/cardanoapi/govtool-test-reports`](https://github.com/cardanoapi/govtool-test-reports)

- Go to Deploy Keys and add your public key. Make sure to grant it write access.

3. **Adding Private Key to Secrets:**
- Go to Secrets and add your private key as `DEPLOY_KEY`.

0 comments on commit f872b67

Please sign in to comment.