Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update(ci): try using a base64 private key #206

Open
wants to merge 14 commits into
base: dev
Choose a base branch
from
50 changes: 49 additions & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,56 @@ jobs:
Failed Automated Test
type: add

publish-playwright-report:
if: always()
needs: merge-reports
runs-on: ubuntu-latest
permissions:
checks: write
pull-requests: write
contents: write
issues: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
outputs:
playwright_report_url: ${{ steps.comment.outputs.playwright_report_url }}
steps:
- uses: actions/[email protected]
with:
repository: Satellite-im/test-reports
ref: gh-pages
path: gh-pages

- name: Download Merged Report
uses: actions/[email protected]
with:
name: playwright-merged-report
path: playwright-report

- name: Set a timestamp
id: timestampidone
run: echo "timestamp=$(date --utc +%Y%m%d_%H%M%SZ)" >> "$GITHUB_OUTPUT"

- id: deploy-playwright-report
if: always()
name: Deploy Playwright report to Github Pages
uses: Wandalen/wretry.action@master
with:
attempt_limit: 3
action: peaceiris/actions-gh-pages@v4
with: |
external_repository: Satellite-im/test-reports
publish_branch: gh-pages
publish_dir: ./playwright-report
destination_dir: ${{ steps.timestampidone.outputs.timestamp }}
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}

- name: Set Playwright report URL output
id: comment
run: echo "playwright_report_url=https://satellite-im.github.io/test-reports/${{ steps.timestampidone.outputs.timestamp }}/" >> "$GITHUB_OUTPUT"

remove-label:
needs: [test, merge-reports]
needs: [test, merge-reports, publish-playwright-report]
runs-on: ubuntu-latest
permissions:
checks: write
Expand Down
2 changes: 1 addition & 1 deletion playwright.ci.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default defineConfig({
/* Run tests in files in parallel */
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
forbidOnly: false,
/* Retry on CI only */
retries: process.env.CI ? 2 : 1,
/* Opt out of parallel tests on CI. */
Expand Down
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default defineConfig({
/* Run tests in files in parallel */
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
forbidOnly: false,
/* Retry on CI only */
retries: process.env.CI ? 2 : 1,
/* Opt out of parallel tests on CI. */
Expand Down
2 changes: 1 addition & 1 deletion playwright/specs/01-pin-input.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ test.describe("Create Account and Login Tests", () => {
const status = faker.lorem.sentence(3);
const pinNumber = "123456";

test("A1, A9, A11 - Enter valid PIN redirects to Main Page", async ({
test.only("A1, A9, A11 - Enter valid PIN redirects to Main Page", async ({
enterPinUserContext,
}) => {
const page = enterPinUserContext.page;
Expand Down
Loading