To ensure the Azure CLI is installed on your Playwright CI container for every build, you need to add the installation command to your GitHub Actions workflow file. This file is typically located in the .github/workflows
folder and named playwright.yml
.
Follow these steps:
playwright.yml
).jobs
section, add a new step called "Install Azure CLI".- name: Install Azure CLI
run: |
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
This command downloads and installs the latest version of the Azure CLI on your container.
After adding this step to your workflow file and committing it to your repository, every build triggered by a push or pull request into the main/master branch will automatically install the Azure CLI on your Playwright CI container.
Now, you can confidently use the Azure CLI in your @playwright/test scripts, knowing it's installed on every build of your Playwright CI container.
If you still have questions, please ask a question and I will try to answer it.
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].