coveralls 0.6.15 #115
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: brew test-bot | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test-bot: | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, ubuntu-22.04, macos-12, macos-13, macos-latest] | |
runs-on: ${{ matrix.os }} | |
env: | |
HOMEBREW_NO_INSTALL_FROM_API: 1 | |
steps: | |
- name: Set up Homebrew | |
id: set-up-homebrew | |
uses: Homebrew/actions/setup-homebrew@master | |
- name: Cache Homebrew Bundler RubyGems | |
id: cache | |
uses: actions/cache@v4 | |
with: | |
path: ${{ steps.set-up-homebrew.outputs.gems-path }} | |
key: ${{ matrix.os }}-cache-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }} | |
restore-keys: ${{ matrix.os }}-cache-rubygems- | |
- name: Install Homebrew Bundler RubyGems | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: brew install-bundler-gems | |
# New step: Collect extra debug information for macOS-12 | |
- name: Brew info on openssl@3 and zlib (macos-12) | |
if: matrix.os == 'macos-12' | |
run: | | |
brew info openssl@3 | |
brew info zlib | |
- name: Collect diagnostics for macOS-12 | |
if: matrix.os == 'macos-12' | |
run: | | |
brew config | |
brew doctor | |
- run: brew test-bot --only-cleanup-before | |
- run: brew test-bot --only-setup | |
- run: brew test-bot --only-tap-syntax | |
- run: brew test-bot --only-formulae | |
if: github.event_name == 'pull_request' | |
# New Step: Run `brew bottle` and commit formula updates | |
- name: Build bottles and update formula | |
if: matrix.os == 'macos-12' | |
run: | | |
brew bottle coverallsapp/coveralls/coveralls | |
brew bottle --merge --write ./coveralls--0.6.15.*.bottle.json | |
git config --global user.name "GitHub Actions" | |
git config --global user.email "actions@github.com" | |
git add Formula/coveralls.rb | |
git commit -m "Update formula with new bottle hashes for ${{ matrix.os }}" | |
env: | |
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload bottles as artifact | |
if: always() && github.event_name == 'pull_request' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: bottles | |
path: '*.bottle.*' |