Skip to content

Test brew package on Linux #23

Test brew package on Linux

Test brew package on Linux #23

Workflow file for this run

name: Test Homebrew Formula
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
test_formula:
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Homebrew (Linux only)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y build-essential curl file git
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
echo 'eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)' >>~/.profile
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
- name: Install Dashlane CLI from rb file
run: brew install --build-from-source Formula/dashlane-cli.rb
- name: Run brew tests
run: brew test Formula/dashlane-cli.rb