scheduled: cleanup build
parent
454cc53e32
commit
4b79f1d86b
|
@ -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) }}
|
||||
|
|
Loading…
Reference in New Issue