603 Commits

Author SHA1 Message Date
Issy Long
3b71e3d4fd
OK so the push needs the plain, Actions run GITHUB_TOKEN 2020-08-21 14:52:04 +01:00
Issy Long
b169ac85cb
Put all of the commit message in the autogenerated PR description
- This'll stop needs-response[bot] from moaning at us.
2020-08-21 14:52:04 +01:00
Issy Long
0244eb89ae
Push commits and raise PR using `HOMEBREW_GITHUB_API_TOKEN (BrewTestBot's)
- The github-actions[bot] PRs don't to trigger CI runs, and are hence
  unmergeable without manual intervention.
2020-08-21 14:52:04 +01:00
vidusheeamoli
982c7adaf2
.github/workflows: add action to update tapioca definitions
- Tapioca is a companion gem to Sorbet that generates RBI files for the
  Ruby gems in a project.
- Whenever Dependabot updates a gem, Tapioca has to regenerate that gem's
  RBI files so that Sorbet can accurately assess the state of the typing
  of a codebase.
- We also must regenerate Sorbet's view of
  [things defined at runtime](https://sorbet.org/docs/rbi#the-hidden-definition-rbi):
  this is what it calls `hidden-definitions`.
- Obviously, this got tedious to do manually. So here's an Action that
  runs every three days and raises a PR if there are any changes.

Co-authored-by: Vidushee Amoli <vidushee.amoli@gmail.com>
Co-authored-by: Issy Long <me@issyl0.co.uk>
Co-authored-by: Jonathan Chang <jchang641@gmail.com>
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2020-08-21 14:52:03 +01:00
Maxim Belkin
57c02af359 Add template titles 2020-08-20 14:40:40 +00:00
Rylan Polster
90d9454d1e utils/spdx: add support for complex expressions
Co-authored-by: Seeker <meaningseeking@protonmail.com>
2020-08-19 12:47:58 -04:00
Mike McQuaid
d2fc08d942
GitHub Actions cleanup
- Add consistent spacing
- Remove `pull_request: []` warning
- remove identical, implicit `name` usage
- use `actions/cache@v1` for compatibility
2020-08-13 14:54:22 +01:00
Mike McQuaid
117cba9126
Merge pull request #8313 from maxim-belkin/gh-tests-tweaks
tests.yml: minor tweaks
2020-08-13 11:46:43 +01:00
Maxim Belkin
2b859282e0
tests.yml: address review comments 2020-08-12 07:52:36 -05:00
Maxim Belkin
133155397c
tests.yml: use proper matrix syntax
Co-authored-by: Bo Anderson <mail@boanderson.me>
2020-08-11 19:00:36 -05:00
Maxim Belkin
f6463c5a33
tests.yml: minor tweaks 2020-08-11 17:41:02 -05:00
Mike McQuaid
844c330cc5
workflows: test on "push" not "pull_request".
This ensures they have access to the correct secrets.
2020-08-11 14:01:27 +01:00
Markus Reiter
c92cfda328 Actually run brew cask style on all taps. 2020-08-09 18:04:21 +02:00
Mike McQuaid
a1dc809f5b
bin/brew: don't filter GitHub Actions variables. 2020-08-07 10:19:00 +01:00
Mike McQuaid
3e4da13934
Cleanup more GitHub Actions usage
Increase consistency between workflows, use more of our actions and
`@main`.
2020-08-06 19:35:39 +01:00
Mike McQuaid
b23d2f02a8
workflows/tests: cleanup steps.
Set up Homebrew should handle both the Git and Ruby setup for us (and
do so faster).
2020-08-06 14:02:47 +01:00
Mike McQuaid
b0d26b0dcf
workflows/tests: use setup-homebrew GitHub Action.
This allows more code reuse.
2020-08-06 10:55:18 +01:00
Mike McQuaid
d8442d175e
workflows/tests: tweak step naming.
This should make it a bit more obvious what is being tested each time.

The homebrew-core/linuxbrew-core style step actually runs the same
command but, as far as I can tell, there's no way of altering the string
that's output as the `name` based on the OS.
2020-08-04 16:04:09 +01:00
Jonathan Chang
bacc40b5be workflows: run spdx only on Homebrew/brew 2020-08-04 10:44:16 +10:00
Bo Anderson
5ebb5fa1a6
Merge pull request #8157 from Bo98/codecov-patch
codecov.yml: mark patch status as informational
2020-07-31 21:26:18 +01:00
Bo Anderson
2c9c876eb8 codecov.yml: mark patch status as informational 2020-07-31 17:19:20 +01:00
Mike McQuaid
8f4188926a
workflows/tests: run brew audit on homebrew/core.
Run brew audit without Git, style (RuboCop) or online checks for
homebrew/core. This is fast enough now (takes under a minute on my
machine) and these are the audit failures we should never accept
failures on (or introduce new ones without fixing them first).
2020-07-31 17:03:31 +01:00
Maxim Belkin
7d7b0f9c5a feature and issue templates: shorter titles 2020-07-27 15:01:18 +00:00
Mike McQuaid
949c102ff0
workflows/tests: run brew test-bot --only-formulae.
This will avoid some duplicate steps already run by this workflow while
continuing to provide an integration test of the formula testing
formula.
2020-07-27 15:47:52 +01:00
Mike McQuaid
25db60ebbb
Unify (mostly) Homebrew code style
Make the Homebrew/cask and Homebrew/homebrew-core style more closely
match the rest of Homebrew.

To accomplish this:
- Run `brew cask style` to ensure we don't break style there when
  making changes or upgrading RuboCop in Homebrew/brew.
- Fix the HomepageMatchesUrl cop to better handle weird input.
- Remove the now unneeded `.rubocop_shared.yml`
- Fix the cask fixtures with `brew cask style --fix`.
- Share more style between Homebrew/brew, casks and formulae.
2020-07-27 12:57:40 +01:00
Dustin Rodrigues
c56f47c1ee use main branch for setup-ruby action 2020-07-25 23:03:16 -04:00
Jonathan Chang
44198b7105 workflows: fix crontab 2020-07-19 00:19:41 +10:00
Bo Anderson
4a167d7943 workflows: auto create PRs for license data updates 2020-07-17 14:22:19 +01:00
Jonathan Chang
0c39d089d6 workflows: use GITHUB_TOKEN when checking license 2020-07-17 21:46:24 +10:00
Mike McQuaid
7c30fadc34
workflows/tests: link python@3.8.
Investigated a full uninstall but it takes too long (>5m).
2020-07-08 11:12:26 +01:00
Mike McQuaid
d46288d4c8
Merge pull request #7535 from MikeMcQuaid/doctor-ci
workflows/doctor: add macOS `brew doctor` CI.
2020-07-07 14:34:56 +01:00
Mike McQuaid
fea704b454
Move .codecov.yml
>  the file must still be located in the root, dev/, or .github/ directories

https://docs.codecov.io/docs/codecov-yaml#can-i-name-the-file-codecovyml
2020-07-03 17:03:29 +01:00
Mike McQuaid
170b38892a
Use CodeCov for coverage reporting. 2020-07-02 10:22:54 +01:00
Lionell
ff7a80ebf5 Merge branch 'master' into license 2020-06-25 21:51:39 +08:00
Mike McQuaid
ac0665daff
Refer to default branch in links with HEAD
Anywhere we can use `blob/master` we can use `blob/HEAD` instead. This
will make life easier if we ever rename our default branch in future
(once/if Git and GitHub provides the necessary tooling to do so).
2020-06-25 11:38:40 +01:00
Lionell
eb38890f3c change back to open because File.open does not work on URLs 2020-06-25 17:46:28 +08:00
Mike McQuaid
958d3a704a
Remove workflows/apidoc
Replaced with scheduled regeneration job in
https://github.com/Homebrew/rubydoc.brew.sh/pull/97.
2020-06-12 09:48:38 +01:00
Mike McQuaid
16f304c3e0 workflows/doctor: add macOS brew doctor CI.
When we change any of the files related to `brew doctor` or Xcode
versions ensure that we test them on the macOS self-hosted workers so
we don't merge changes here that break `brew doctor` there.
2020-06-07 21:17:02 +01:00
Ed Reel
7438509144
Update feature.md
Add the same notice at the top as the bug issue template.  This will help guide new users to fill out the template correctly.
2020-05-30 11:18:46 -05:00
Shaun Jackman
3d3aef4076 docker.yml: Tag homebrew/brew:$brew_version 2020-05-22 11:46:42 -07:00
Shaun Jackman
0c8a7b0488 Base homebrew/brew Docker image on ubuntu:20.04
Add a new image homebrew/ubuntu16.04 for building Linux bottles.
Tag the most recent stable release of each image as latest.
2020-05-20 22:11:42 -07:00
Mike McQuaid
b2fc8ad7b3
Merge pull request #7585 from hyuraku/brew_doctor-shows-deleted_formulae
brew doctor shows deleted formulae
2020-05-19 17:07:32 +01:00
hyuraku
fbabeb4468 add a comment 2020-05-19 23:58:41 +09:00
hyuraku
e1cf1b2183 uninstall python2 at test 2020-05-19 23:16:45 +09:00
Mike McQuaid
667d87ce67
workflows/tests: set global environment.
We never want to auto-update and we want to globally set that we're in
GitHub Actions.
2020-05-18 20:50:21 +01:00
Bo Anderson
d9ad24f5af workflows/tests: fix for pre-installed Linuxbrew 2020-05-12 17:48:31 +01:00
Dawid Dziurla
95c6d3797d
workflows: login without specifying registry 2020-05-11 10:38:38 +02:00
Dawid Dziurla
9ecc04fbe4
workflows: fix docker tag 2020-05-11 10:21:08 +02:00
Shaun Jackman
4b68c7a08c tests.yml: Deploy the Docker image to Docker Hub 2020-05-05 11:56:28 -07:00
Shaun Jackman
f4e32ebcb1 docker.yml: Set persist-credentials: false 2020-05-04 16:16:18 -07:00