This thread is trying to answer question "How to setup proxy in YAML file to install playwright in GitHub actions?"
@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
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].