Commit Graph

19 Commits

Author SHA1 Message Date
Rafael Mendonça França db94a22b08
Fix codespaces precache action 2021-09-22 13:34:27 -04:00
Rafael Mendonça França 0cfee597e4
Setup codespaces prebuild tasks 2021-09-22 13:31:58 -04:00
John Bampton 6e85b6b86e Add spell checking with codespell as a GitHub Action
`codespell` works with a small custom dictionary and seems to find perhaps more spelling mistakes than `misspell` which really only fixes commonly misspelled English words.

Not all spell checkers can check all file types and most spell checkers can't find all the errors.

https://github.com/codespell-project/codespell
https://pypi.org/project/codespell/
2021-05-04 14:46:21 +10:00
John Bampton bf8986783b feat(CI): correct commonly misspelled English words with GitHub Actions
Misspell -> Correct commonly misspelled English words... quickly.  A Golang library that runs without a dictionary.

https://github.com/client9/misspell

Can even autofix with '-w'
2021-04-12 01:01:22 +10:00
Eugene Kenny 100f7a7f64 Add rubocop group to Gemfile for use in CI
Since c1e7268c83 we install the latest
version of RuboCop in our GitHub Actions workflow for speed, but this
sacrifices reproducibility; the results will change whenever RuboCop
publishes a new version. Instead we can add a new group to our Gemfile
that just contains the dependencies necessary to run RuboCop, and skip
installing everything else in CI.

Unfortunately it's not possible to tell Bundler to only install gems
from a single group, so we have to tell it not to install every other
group instead.
2020-03-27 23:55:26 +00:00
Olle Jonsson c1e7268c83 Simplify GitHub Action RuboCop 2020-03-27 20:04:01 +01:00
Yasuo Honda 3530ad1461 Use `ruby/setup-ruby` action to use Ruby 2.7
https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby

Because Ruby 2.7 already installs bundler by default, no need to install
bundler separately.
2020-02-06 18:02:08 -08:00
Juanito Fatas 403bb8714a Save few seconds on every build
Install bundler takes about 7-8s and without installing documentations
takes about 3-4s
2020-02-02 22:05:43 +09:00
Rodrigo Ramírez Norambuena 2550679621 Use --assume-yes to install the dependencies for Github's workflows:
This could prevent not install if require a confirmation action on
system were is run the workflow.
2020-01-18 22:07:52 -03:00
Rafael Mendonça França d2e21d07a4
Install bundler instead of trying to upgrade Ruby
Ruby 2.7 is not available yet.
2019-12-27 11:50:47 -03:00
Rafael Mendonça França ea287ad835
Upgrade Ruby in the github actions 2019-12-27 11:46:57 -03:00
Sean C. Sullivan 0358607d5a github actions checkout v2 2019-12-21 20:47:02 -08:00
Yasuo Honda 2dc2876965
Revert "Workaroud to address apt-get update at GitHub Actions" 2019-12-14 08:20:00 +09:00
Yasuo Honda 2b15fbf5ed Workaroud to address apt-get update at GitHub Actions
https://github.com/rails/rails/pull/37950/checks?check_run_id=346759027

```
Reading package lists...
W: Conflicting distribution: https://packages.microsoft.com/repos/microsoft-ubuntu-bionic-prod bionic InRelease (expected bionic but got stable)
E: Repository 'https://packages.microsoft.com/repos/microsoft-ubuntu-bionic-prod bionic InRelease' changed its 'Origin' value from 'microsoft-ubuntu-bionic-prod bionic' to 'vscode stable'
E: Repository 'https://packages.microsoft.com/repos/microsoft-ubuntu-bionic-prod bionic InRelease' changed its 'Label' value from 'microsoft-ubuntu-bionic-prod bionic' to 'vscode stable'
E: Repository 'https://packages.microsoft.com/repos/microsoft-ubuntu-bionic-prod bionic InRelease' changed its 'Suite' value from 'bionic' to 'stable'
E: Repository 'https://packages.microsoft.com/repos/microsoft-ubuntu-bionic-prod bionic InRelease' changed its 'Codename' value from 'bionic' to 'stable'
W: Conflicting distribution: https://packages.microsoft.com/ubuntu/16.04/prod xenial InRelease (expected xenial but got stable)
E: Repository 'https://packages.microsoft.com/ubuntu/16.04/prod xenial InRelease' changed its 'Origin' value from 'microsoft-ubuntu-xenial-prod xenial' to 'vscode stable'
E: Repository 'https://packages.microsoft.com/ubuntu/16.04/prod xenial InRelease' changed its 'Label' value from 'microsoft-ubuntu-xenial-prod xenial' to 'vscode stable'
E: Repository 'https://packages.microsoft.com/ubuntu/16.04/prod xenial InRelease' changed its 'Suite' value from 'xenial' to 'stable'
E: Repository 'https://packages.microsoft.com/ubuntu/16.04/prod xenial InRelease' changed its 'Codename' value from 'xenial' to 'stable'
```

Refer:
https://github.community/t5/GitHub-Actions/ubuntu-latest-Apt-repository-list-issues/td-p/41122/page/2
3842b0b8a1
2019-12-13 18:14:02 +09:00
Yasuo Honda 4ba2a9b65e Easy to show `bundle exec rubocop` output at Action
When pull requests have RuboCop offenses they need to click
"Build and run RuboCop" section and scroll about 200 lines
to skip `bundle install` output.

This change splits "Build and run RuboCop" into two parts.
then "Run RuboCop" section only shows `bundle exec rubocop --parallel`
output
2019-11-27 00:17:34 +00:00
yuuji.yaginuma b120110a52 Update packages before install
Without it, it seems to be an error trying to install an older version.
Ref: ea303d012e/checks?check_suite_id=321223550#step:4:29
2019-11-21 09:01:29 +09:00
Yasuo Honda c3b300611f Bump GitHub Action cache version from preview to v1
Refer https://github.com/actions/cache/pull/51/
2019-11-16 10:52:59 +09:00
Yasuo Honda 55f9c8a147 Cache gems for GitHub Actions
Follows up #37582

GitHub Actions cache requires `path:` parameter to configure
which directory to be cached. It looks there is no easy way to retrieve path information
using bundler command then workaround implemented to use `vendor/bundle`.

Thanks to https://github.com/actions/cache/pull/4
2019-10-31 23:43:17 +00:00
Yasuo Honda ce9a220fdc Enabled GitHub Actions to run the latest RuboCop 0.76.0
Updated the default Ruby workflow:

* Trigger this action for pull request and push
* Install requried OS packages for Active Record connection adapters
* Removing `gem install bundler` because Ruby 2.6 already installs it
* Run RuboCop in parallel by `bundle exec rubocop --parallel`
* Rename `ruby.yml` to `rubocop.yml` to represent the workflow

Bump RuboCop to 0.76.0 and rename `Style/UnneededPercentQ` to `Style/RedundantPercentQ`

```ruby
$ bundle exec rubocop
Error: The `Style/UnneededPercentQ` cop has been renamed to `Style/RedundantPercentQ`.
(obsolete configuration found in .rubocop.yml
```

Removed `.codeclimate.yml`
2019-10-30 23:21:09 +00:00