actions/tests: Run brew style
and brew man
before brew tests
- The style and man page checks are quicker than `brew tests`, which can take forever. - If people make mistakes with style or forget to run `brew man`, they will notice quicker, thus fixing issues quicker. - This also wastes less compute time (and therefore energy) by only running `brew tests` when all the other less-involved checks work.
This commit is contained in:
parent
f527f03fb5
commit
1da81c675f
12
.github/workflows/tests.yml
vendored
12
.github/workflows/tests.yml
vendored
@ -78,6 +78,12 @@ jobs:
|
||||
sudo chmod -R g-w,o-w /home/linuxbrew /home/runner /opt
|
||||
fi
|
||||
|
||||
- name: Run brew style
|
||||
run: brew style --display-cop-names
|
||||
|
||||
- name: Run brew man
|
||||
run: brew man --fail-if-changed
|
||||
|
||||
- name: Run brew tests
|
||||
run: |
|
||||
# brew tests doesn't like world writable directories
|
||||
@ -107,12 +113,6 @@ jobs:
|
||||
# These cannot be queried at the macOS level on GitHub Actions.
|
||||
HOMEBREW_LANGUAGES: en-GB
|
||||
|
||||
- name: Run brew style
|
||||
run: brew style --display-cop-names
|
||||
|
||||
- name: Run brew man
|
||||
run: brew man --fail-if-changed
|
||||
|
||||
- name: Run brew update-tests
|
||||
run: |
|
||||
git config --global user.name "BrewTestBot"
|
||||
|
Loading…
x
Reference in New Issue
Block a user