321 Commits

Author SHA1 Message Date
Markus Reiter
bbea2d840d Run brew typecheck without --quiet on CI. 2020-10-09 16:45:13 +02:00
Mike McQuaid
16ee849c43
Merge pull request #8632 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-performance-1.8.0
build(deps): bump rubocop-performance from 1.7.1 to 1.8.0 in /Library/Homebrew
2020-09-11 11:58:49 +01:00
Mike McQuaid
5a20968c19 Tweak tests annotations
- Don't skip Git installation tests on generic OS; remove it instead.
- Install Subversion for macOS Subversion tests.
2020-09-11 11:11:42 +01:00
Mike McQuaid
ba54a54dfc tests: handle tapped homebrew/bundle. 2020-09-11 11:00:42 +01:00
Mike McQuaid
5ac1ea8762 workflows: make homebrew lowercase again for Docker.
Otherwise this fails.
2020-09-03 13:31:34 +01:00
Mike McQuaid
a5fae14f1f workflows: tweak docker.
- Note GitHub Packages specifically in step names
- Use uppercase for Homebrew name/tag (in case it makes a difference)
- Use `--password-stdin` to avoid a warning
2020-09-03 11:16:59 +01:00
Mike McQuaid
8d07f4f15c workflows: migrate to GitHub Container Registry.
This seems a better fit for us (unauthenticated anonymous access) than
GitHub Packages Docker registry was.

Followed steps on:
https://docs.github.com/en/packages/getting-started-with-github-container-registry/migrating-to-github-container-registry-for-docker-images
2020-09-03 09:41:37 +01:00
Mike McQuaid
6f311852d6 Fix unvendored RubyGems
- Avoid caching RubyGems in GitHub Actions `tests.yml` to catch this in
  future.
- Run `brew doctor` in GitHub Actions `tests.yml` after installing
  RubyGems to catch this in future.
- Ignore relevant RubyGems (and fix outdated comments)
- Never auto-`require` RubyGems that aren't vendored.
- Update `bundler/setup.rb`.
2020-08-27 14:03:03 +01:00
Mike McQuaid
943762f745 workflows/tests: run brew typecheck --quiet.
This will allow us to verify that we can merge new sorbet/tapioca
updates.
2020-08-27 08:49:25 +01: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
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
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
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
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
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
170b38892a
Use CodeCov for coverage reporting. 2020-07-02 10:22:54 +01:00
Lionell
eb38890f3c change back to open because File.open does not work on URLs 2020-06-25 17:46:28 +08: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
5052f49f40 Build Docker images for Ubuntu 18.04 and 20.04 2020-05-02 21:04:08 -07:00
Bo Anderson
fe0d45b123 workflows/tests: fix gem caching 2020-05-02 00:42:06 +01:00
Mike McQuaid
51d8ce8e8f
workflows/tests: simplify PATH setup.
Doesn't need to be a separate step.
2020-04-30 16:50:22 +01:00
Mike McQuaid
adae118460
workflows/tests: run brew style on Linux.
linuxbrew-core seems to be passing `brew style` now (and has CI checks
to ensure it does in future, too).
2020-04-30 16:07:14 +01:00
Mike McQuaid
37d87e3fa3
workflows/tests: cache RubyGems.
This should save about a minute for each CI run.
2020-04-27 11:31:21 +01:00
Issy Long
9baebbe38a
Lint the homebrew/brew Dockerfile with hadolint
- I suggested this for the contents of
  [Linuxbrew/docker](https://github.com/Linuxbrew/docker) in
  https://github.com/Linuxbrew/docker/issues/75. People agreed, and
  Shaun asked me to do the same here.
- This adds a step to CI to lint the Dockerfile, via
  [hadolint](https://github.com/hadolint/hadolint), on Ubuntu.
- The linting errors it surfaced on this Dockerfile were:

```
Dockerfile:4 DL3008 Pin versions in apt get install. Instead of `apt-get install <package>` use `apt-get install <package>=<version>`
Dockerfile:30 DL3020 Use COPY instead of ADD for files and folders
Dockerfile:32 DL3003 Use WORKDIR to switch to a directory
```

- [DL3008](https://github.com/hadolint/hadolint/wiki/DL3008) - pinning
  versions in `apt-get install` - is at odds with what we recommend in the
  normal Homebrew on Linux dependency install instructions. We don't
  want the dependency management of having to check each of these
  Dockerfiles periodically for the latest version numbers of packages
  and have to update them. So I've disabled this lint.

- [DL3003](https://github.com/hadolint/hadolint/wiki/DL3003) - use
  WORKDIR to `cd` - is disabled in this case due to [review
  comments](https://github.com/Homebrew/brew/pull/7433/files#r415098255).
2020-04-26 09:54:36 +01:00
Bo Anderson
333966c926 workflows/tests: ensure taps are up-to-date 2020-04-25 14:17:32 +01:00
Mike McQuaid
f9a84075ac
workflows/tests: link old gettext.
This is failing `brew doctor` on GitHub Actions.
2020-04-22 21:36:18 +01:00
Mike McQuaid
b8819e98f0
workflows/tests: allow missing system Linuxbrew.
If it's not there: setup Linuxbrew but reuse the checkout.
2020-04-21 13:03:40 +01:00
Jonathan Chang
cdf99e6849 workflows: don't use actions/checkout 2020-04-19 01:12:41 +10:00
Dawid Dziurla
4dc9312f3c
workflows: fix docker tag 2020-04-17 18:46:06 +02:00
Mike McQuaid
7747a0be93
workflows/tests: temporarily disable docker tag. 2020-04-17 16:39:35 +01:00
Mike McQuaid
f281cb757c
workflows/tests: handle system Linuxbrew.
GitHub Actions has started rolling out Linuxbrew to some workers so
ensure we can handle whether or not it's present.

Cleanup and move things around while we're here.
2020-04-17 16:38:58 +01:00