mirror of
https://github.com/bartvdbraak/homebrew-keyweave.git
synced 2025-04-27 17:41:22 +00:00
feat: add homebrew test pipeline
This commit is contained in:
parent
0dcaa83d3e
commit
31cd9e50bf
1 changed files with 40 additions and 0 deletions
40
.github/workflows/tests.yml
vendored
Normal file
40
.github/workflows/tests.yml
vendored
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
name: End-to-end tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths:
|
||||||
|
- "Formula/keyweave.rb"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os:
|
||||||
|
- ubuntu-22.04
|
||||||
|
- ubuntu-20.04
|
||||||
|
- macos-13
|
||||||
|
- macos-12
|
||||||
|
- macos-11
|
||||||
|
|
||||||
|
name: Test on ${{ matrix.os }}
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Check if Homebrew is installed
|
||||||
|
run: |
|
||||||
|
if ! command -v brew &> /dev/null
|
||||||
|
then
|
||||||
|
echo "Homebrew not found, installing..."
|
||||||
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||||
|
else
|
||||||
|
echo "Homebrew is already installed."
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Verify Homebrew installation
|
||||||
|
run: |
|
||||||
|
brew tap bartvdbraak/keyweave
|
||||||
|
brew install keyweave
|
Loading…
Reference in a new issue