scheduled: cleanup build

master
Sean Molenaar 2022-12-15 19:36:54 +01:00
parent 454cc53e32
commit 4b79f1d86b
1 changed files with 5 additions and 2 deletions

View File

@ -17,20 +17,23 @@ jobs:
runs-on: ubuntu-22.04
outputs:
json: ${{ steps.matrix.outputs.json }}
env:
TEST_COUNT: 20
TAP: homebrew/core
steps:
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
- id: matrix
run: |
formula=$(find $(brew --repo homebrew/core)/Formula | shuf -n10 | xargs -I{} basename {} .rb)
formula=$(find $(brew --repo "${TAP}")/Formula | shuf -n "${TEST_COUNT}" | xargs -I{} basename {} .rb)
json=$(brew info --json=v2 $formula | jq --compact-output '[.formulae[].name]')
echo "json=${json}" >> $GITHUB_OUTPUT
echo "json=${json}"
audit_online:
# if: startsWith( github.repository, 'Homebrew/' )
runs-on: ubuntu-22.04
needs: create_matrix
name: "Online check: ${{ matrix.formula }}"
strategy:
matrix:
formula: ${{ fromJson(needs.create_matrix.outputs.json) }}