workflows/tests: make consistent with Homebrew/brew.

Make more of the logic consistent with what Homebrew/brew's GitHub
Actions' configuration does.
master
Mike McQuaid 2020-04-13 10:52:52 +01:00
parent 84ceeba094
commit 06a8b116f1
1 changed files with 4 additions and 6 deletions

View File

@ -1,8 +1,6 @@
name: 'Build bottles.'
name: GitHub Actions CI
on:
pull_request: []
jobs:
tests:
strategy:
@ -19,11 +17,11 @@ jobs:
HOMEBREW_NO_ANALYTICS: 1
HOMEBREW_NO_AUTO_UPDATE: 1
GITHUB_ACTIONS_HOMEBREW_SELF_HOSTED: 1
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
steps:
- name: Update Homebrew
run: brew update-reset
- name: Checkout repository
- name: Set up Git repository
run: |
cd $(brew --repo ${{github.repository}})
git clean -ffdx
@ -31,7 +29,7 @@ jobs:
git fetch --prune --force origin ${{github.sha}}
git checkout --force ${{github.sha}}
git log -1
- name: Build bottles
- name: Run brew test-bot
run: |
mkdir bottles
cd bottles