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 by Firefox for use in actions by:

  • downloading and caching a version of Firefox by version and add to PATH

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

Contributing

Local development

# Instal dependencies
pnpm install

# Run tests
pnpm lint
pnpm test

# Build and create package in dist/
pnpm build
pnpm package

Release

Releases are automated with Release Please. All changes must follow Conventional Commits, since Release Please derives versions and changelog entries from commit messages.

  1. Merge some changes to the main branch.
  2. Release Please opens or updates a release PR with version bumps and changelog updates.
  3. Squash and merge the release PR to the main branch with a commit message that follows Conventional Commits.
  4. Create a GitHub release and publish the action to the marketplace.

License

MIT

About

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

Topics

Resources

License

Stars

Watchers

Forks

Contributors