This plugin sets up your CI/CD pipeline with Playwright.
Add the following command to your CI configuration file:
fluentci run --wasm playwright install
fluentci run --wasm playwright test
Name | Description |
---|---|
install | ensure browsers necessary for this version of Playwright are installed |
install_deps | install dependencies necessary to run browsers (will ask for sudo permissions) |
screenshot | capture a page screenshot |
save page as pdf | |
test | run tests with Playwright Test |
help | display help for command |
version | output the version number |
Add fluentci-pdk
crate to your Cargo.toml
:
[dependencies]
fluentci-pdk = "0.1.9"
Use the following code to call the plugin:
use fluentci_pdk::dag;
// ...
dag().call("https://pkg.fluentci.io/playwright@v0.1.0?wasm=1", "install", vec![])?;
Github Actions:
- name: Setup Fluent CI CLI
uses: fluentci-io/setup-fluentci@v5
with:
wasm: true
plugin: playwright
args: |
install
- name: Run Playwright tests
run: |
fluentci run --wasm playwright test