34 Commits

Author SHA1 Message Date
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
Mike McQuaid
14261be2e5
workflows/tests: run brew style on taps.
Also, clarify where `brew readall` is run.
2020-04-14 12:29:17 +01:00
Shaun Jackman
f3307193e0 .github/workflows/tests.yml: Deploy Docker image
Deploy the latest Docker image on a push to master.
Deploy a tagged Docker image upon publication of a release.
2020-03-25 18:52:03 -07:00
Issy Long
1da81c675f
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.
2020-03-19 19:17:26 +00:00
Mike McQuaid
1a296e4302
workflows/tests: cleanup actions.
Tweak GitHub Actions code to be more consistent.
2020-03-04 14:47:51 +00:00
Mike McQuaid
2f141c771a
workflows/tests: add missing newline. 2020-03-04 11:38:02 +00:00
Mike McQuaid
9667d45f10
workflows/tests: tweak PATH setup. 2020-03-04 11:37:23 +00:00
hayato iida
4c0a73222b
Update .github/workflows/tests.yml
Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
2020-03-04 10:03:05 +09:00
hayato iida
e1508c66ff change export PATH to add-path for github actions 2020-03-03 12:35:42 +09:00
Mike McQuaid
43f6411f14
workflows/tests: restrict to Homebrew/brew.
This should avoid being spammed with failing CI runs on random forks.
2020-02-19 11:59:37 +00:00
Issy Long
4e3a846439
Add vale linting as a CI step
- So that people know when the docs they've written violate our style
  guides.
2019-12-18 16:09:21 +00:00
Mike McQuaid
bed5297b6c
.github/workflows/tests: run config, doctor.
This should help with debugging why the `brew bundle` tests are now
failing.
2019-12-04 15:35:31 +00:00
Mike McQuaid
a6c3ee02dd
workflows/tests: tweak behaviour by OS.
This should speed up Homebrew/brew testing by not running generic or
no-compat tests on macOS.
2019-11-27 14:01:39 +00:00
Mike McQuaid
854b445919
workflows/tests: display cop names.
This is useful when debugging locally.
2019-11-27 13:09:35 +00:00
Mike McQuaid
b9a0135041
workflows/tests: skip update-test unless on a PR.
If this is a `master` build and it was merged: this is a flaky test we
can't do anything about.
2019-11-27 09:38:22 +00:00
Mike McQuaid
a3b1ef8d28
tests: set git user for update-test.
Otherwise it can fail:
a5550aa9a9/checks
2019-11-22 09:25:27 +00:00
Mike McQuaid
04835db85e
Move some brew-test-bot logic to GitHub Actions.
This will improve the output and ease of parsing while allowing code to
be removed from brew-test-bot which relates only to a single repo (this
one).
2019-11-21 19:50:23 +00:00
Mike McQuaid
9a5f54c0c3
.github/workflows/tests: use homebrew/brew docker image.
This has replaced the linuxbrew/brew one.
2019-10-09 21:12:11 +01:00
Markus Reiter
94233cf4e1
Merge pull request #6384 from reitermarkus/docker
Try caching the Docker image.
2019-08-21 09:59:09 +02:00
Mike McQuaid
e002a39a42 workflows/tests: hardcode coveralls token.
This is just used to set test coverage and GitHub Actions doesn't have
a good "secrets for forks" story yet.
2019-08-21 08:35:13 +01:00
Markus Reiter
85968040b1 Try caching the Docker image. 2019-08-21 06:55:15 +02:00
Mike McQuaid
67f960ba67 GitHub Actions CI
Try to setup GitHub Actions CI.
2019-08-19 20:38:19 +01:00