1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

11 commits

Author SHA1 Message Date
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 (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