scheduled: cleanup build
parent
454cc53e32
commit
4b79f1d86b
|
@ -17,20 +17,23 @@ jobs:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
outputs:
|
outputs:
|
||||||
json: ${{ steps.matrix.outputs.json }}
|
json: ${{ steps.matrix.outputs.json }}
|
||||||
|
env:
|
||||||
|
TEST_COUNT: 20
|
||||||
|
TAP: homebrew/core
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Homebrew
|
- name: Set up Homebrew
|
||||||
id: set-up-homebrew
|
id: set-up-homebrew
|
||||||
uses: Homebrew/actions/setup-homebrew@master
|
uses: Homebrew/actions/setup-homebrew@master
|
||||||
- id: matrix
|
- id: matrix
|
||||||
run: |
|
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]')
|
json=$(brew info --json=v2 $formula | jq --compact-output '[.formulae[].name]')
|
||||||
echo "json=${json}" >> $GITHUB_OUTPUT
|
echo "json=${json}" >> $GITHUB_OUTPUT
|
||||||
echo "json=${json}"
|
|
||||||
audit_online:
|
audit_online:
|
||||||
# if: startsWith( github.repository, 'Homebrew/' )
|
# if: startsWith( github.repository, 'Homebrew/' )
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
needs: create_matrix
|
needs: create_matrix
|
||||||
|
name: "Online check: ${{ matrix.formula }}"
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
formula: ${{ fromJson(needs.create_matrix.outputs.json) }}
|
formula: ${{ fromJson(needs.create_matrix.outputs.json) }}
|
||||||
|
|
Loading…
Reference in New Issue