Skip to content

browser-actions/setup-firefox

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

build-test

setup-firefox

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.

Usage

See action.yml

Basic usage:

steps:
  - uses: browser-actions/setup-firefox@v1
  - run: firefox --version

Use 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

Supported version formats

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

Supported platforms

Linux x64 Linux ARM32 Linux ARM64 macOS x64 macOS ARM64 Windows x64 Windows ARM64

Parameters

Inputs

  • firefox-version: (Optional) The Firefox version to install and use. Default: latest

Outputs

  • firefox-version: The installed Firefox version. Useful when given a latest version.
  • firefox-path: The installed Firefox path.

Contributing

See CONTRIBUTING.md for development setup, workflow, and release process.

License

MIT

About

Set up your GitHub Actions workflow with a specific version of firefox

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Sponsor this project

 

Contributors