Skip to content

Commit

Permalink
Update ci.yml.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Dec 9, 2022
1 parent 8a2d5fc commit ac0d089
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ concurrency:
group: "${{ github.ref }}"
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

permissions:
contents: read

jobs:
generate-matrix:
outputs:
Expand Down Expand Up @@ -114,24 +117,29 @@ jobs:
id: gems
run: brew install-bundler-gems

- name: Run brew readall ${{ matrix.tap }}
id: readall
run: brew readall '${{ matrix.tap }}'
if: always() && steps.gems.outcome == 'success'

- name: Run brew style ${{ matrix.tap }}
run: brew style '${{ matrix.tap }}'
if: always() && steps.gems.outcome == 'success' && !matrix.cask
if: always() && steps.readall.outcome == 'success' && !matrix.cask

- name: Run brew fetch --cask ${{ matrix.cask.token }}
id: fetch
run: |
brew fetch --cask --retry --force '${{ matrix.cask.path }}'
timeout-minutes: 30
if: always() && steps.gems.outcome == 'success' && matrix.cask
if: always() && steps.readall.outcome == 'success' && matrix.cask

- name: Run brew audit --cask${{ (matrix.cask && ' ') || ' --tap ' }}${{ matrix.cask.token || matrix.tap }}
id: audit
run: |
brew audit --cask ${{ join(matrix.audit_args, ' ') }}${{ (matrix.cask && ' ') || ' --tap ' }}'${{ matrix.cask.path || matrix.tap }}'
brew audit --cask ${{ join(matrix.audit_args, ' ') }}${{ (matrix.cask && ' --signing ') || ' --tap ' }}'${{ matrix.cask.path || matrix.tap }}'
timeout-minutes: 30
if: >
always() && steps.gems.outcome == 'success' &&
always() && steps.readall.outcome == 'success' &&
(!matrix.cask || steps.fetch.outcome == 'success') &&
!matrix.skip_audit
Expand Down

0 comments on commit ac0d089

Please sign in to comment.