Rayrun
← Back to Discord Forum

How to setup proxy in YAML file to install playwright in GitHub actions

Anyone had setup proxy in YAML file to install playwright in GitHub actions please share me your experiences

This thread is trying to answer question "How to setup proxy in YAML file to install playwright in GitHub actions?"

2 replies

@vigneshas you can try below yml content

name: Install Playwright with Proxy

on: [push]

jobs: build: runs-on: ubuntu-latest

steps:
- name: Set up Node.js
  uses: actions/setup-node@v2
  with:
    node-version: '16'

- name: Configure proxy
  env:
    http_proxy: ${{ secrets.HTTP_PROXY }}
    https_proxy: ${{ secrets.HTTPS_PROXY }}
    no_proxy: ${{ secrets.NO_PROXY }}

- name: Install dependencies
  run: |
    npm ci
    npx playwright install-deps
@yusufozt.: Added the code as follows and the error message as well

Added the code as follows and the error message as well

WhatsApp_Image_2023-06-15_at_11.13.39_PM.jpeg
WhatsApp_Image_2023-06-15_at_11.20.14_PM.jpeg
TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].