This action sets up Mozilla Firefox for GitHub Actions. This action supports the following features:
- Install and set up Firefox onto the runner.
- Install a specific version of Firefox by the version number or release channel.
- Cross-platform runner support (Windows, macOS, Linux) and self-hosted runner support.
- Support for Firefox release channels: stable, beta, developer edition, nightly, and ESR.
See action.yml
Basic usage:
steps:
- uses: browser-actions/setup-firefox@v1
- run: firefox --versionUse in the matrix:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
firefox: [ '84.0', 'devedition-84.0b1', 'latest-beta', 'latest-devedition', 'latest-nightly', 'latest-esr', 'latest' ]
name: Firefox ${{ matrix.firefox }} sample
steps:
- name: Setup firefox
id: setup-firefox
uses: browser-actions/setup-firefox@v1
with:
firefox-version: ${{ matrix.firefox }}
- run: |
echo Installed firefox versions: ${{ steps.setup-firefox.outputs.firefox-version }}
${{ steps.setup-firefox.outputs.firefox-path }} --version| Version format | Example | Download source |
|---|---|---|
| Release channel | latest (default), latest-beta, latest-devedition, latest-nightly, latest-esr |
Mozilla Releases |
| Specific version | 84.0, 84.0.1, beta-84.0b1, devedition-84.0b1 |
Mozilla FTP |
| Linux x64 | Linux ARM32 | Linux ARM64 | macOS x64 | macOS ARM64 | Windows x64 | Windows ARM64 |
|---|---|---|---|---|---|---|
| ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ |
firefox-version: (Optional) The Firefox version to install and use. Default:latest
firefox-version: The installed Firefox version. Useful when given a latest version.firefox-path: The installed Firefox path.
See CONTRIBUTING.md for development setup, workflow, and release process.