Граф коммитов

338 Коммитов

Автор SHA1 Сообщение Дата
Takashi Kokubun f9f3510e64
Hook an experimental alert from Actions 2020-03-07 00:34:41 -08:00
卜部昌平 0711ceeb37 .github/workflows: name the configure runs
Explicit `name:` entry was requested by @nobu.
2020-03-02 14:53:05 +09:00
卜部昌平 2bfa1025a9 .github: let "make leaked-globals" run in parallel
This target can be a build matrix.  Also it does not make sense to test
it on mjit.
2020-03-02 14:53:05 +09:00
卜部昌平 888e736524 .github: make use of working-directory
One can specify working directory of a step, no by `cd foo` inside of
the run. See also
https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsrun
2020-03-02 14:53:05 +09:00
卜部昌平 e06ad731f0 .github: less verbose on: specifier
The `branch:` specifier was necessary before, to prevent double-testing
master and trunk.  Now that we no longer have trunk, we can slim the
expressions.

See also: https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#on
2020-03-02 14:53:05 +09:00
卜部昌平 bdf2d91326 .travis.yml, .github: delete environmental dumps
They were necessary when developing YAMLs, but not useful any longer.
2020-03-02 14:53:05 +09:00
Kazuhiro NISHIYAMA 57c26231dd
Use `brew upgrade` instead of `brew update` 2020-02-20 00:13:44 +09:00
Hiroshi SHIBATA 1df2c8cefb
Revert "MinGW - rename OpenSSL dll's in system32 directory"
This reverts commit 95c58d33cc.
2020-02-14 19:57:07 +09:00
MSP-Greg 95c58d33cc MinGW - rename OpenSSL dll's in system32 directory 2020-02-14 19:39:30 +09:00
Kazuhiro NISHIYAMA aeddffafc8 Add "test-all TESTS=--repeat-count=2" to test_task 2020-02-13 13:54:24 +09:00
Kazuhiro NISHIYAMA 8474e6ae1f Use github.run_id in notification payload URL 2020-02-10 16:49:16 +09:00
Nobuyoshi Nakada edf2cedc9c
Allow rexml to fail on macOS of Github Actions
And revert "Stop test-bundled-gems on macOS for now",
28b290f7f4.
2020-01-19 11:56:39 +09:00
Nobuyoshi Nakada 28b290f7f4
Stop test-bundled-gems on macOS for now 2020-01-19 09:48:33 +09:00
Yusuke Endoh 3344f81107 .github/workflows/cygwin.yml: Removed
There is no active maintainer for cygwin.  The CI failure is too noisy.

[Misc #16407]
2020-01-17 17:25:05 +09:00
Nobuyoshi Nakada c9b1969fa3
Checkout with git on cygwin for EOL code
`shell: bash` runs bash on msys which prefers git on msys too,
then checked out in CRLF mode.  Cygwin sed doesn't consider the CR
a part of EOL code, though.
2020-01-13 10:31:53 +09:00
Hiroshi SHIBATA ca6546704a Allow failures with rss tests on test-bundled-gems 2020-01-12 12:28:29 +09:00
Kazuhiro NISHIYAMA e62aead269
Add branch option to checkout on push 2020-01-11 16:24:16 +09:00
Takashi Kokubun e44e3716d0
Slightly change the job wording [ci skip]
mame-san said it's weird
2020-01-06 01:52:20 -08:00
Takashi Kokubun e3aca28970
Support running Actions on a fork
Since 8c9450e7b8, we increased the chance
to run GitHub Actions on a fork, as we usually use a topic branch
instead of master when filing a pull request.

This patch makes it possible to reuse the same GitHub Actions config on
a fork repository.
2020-01-06 01:45:52 -08:00
Takashi Kokubun 8cd292f519
Directly refer to GitHub events
instead of unnecessarily defining env vars
2020-01-06 01:42:31 -08:00
Takashi Kokubun 8c9450e7b8
Remove code to prevent double build on trunk
trunk branch was deleted.
2019-12-31 22:03:21 -08:00
Takashi Kokubun eca964c24e
More consistent failure notifications
The format is the same as Travis / AppVeyor now.
2019-12-31 21:26:40 -08:00
Takashi Kokubun 47c84c74d4
Make test run condition consistent with other jobs
When `make all` fails, we should not run tests and output of such run is
confusing.
2019-12-31 15:29:40 -08:00
Takashi Kokubun 74cb414885
Run tests in the consistent order
`make check` runs test -> test-all -> test-spec, and other CIs follow that too.
2019-12-31 10:24:01 -08:00
Takashi Kokubun 52c228604b
Fix an outdated comment
We're actually using it for PR :p
2019-12-31 09:37:03 -08:00
MSP-Greg 860753eabb Actions MinGW - fix test-all (#2803) 2019-12-31 09:35:43 -08:00
Takashi Kokubun 139f0d90d9
Use actions/checkout for PR (#2804) 2019-12-31 09:34:29 -08:00
Takashi Kokubun 2e1fd4e2d7
Official actions/checkout is useless
It died again https://github.com/ruby/ruby/runs/368837347
2019-12-31 01:49:17 -08:00
Takashi Kokubun 38c35dd22d
Make Slack notifications consistent 2019-12-30 23:46:18 -08:00
Takashi Kokubun 8136fec6e4
There's no such target 2019-12-30 23:42:20 -08:00
Takashi Kokubun f98650e9f8
Make all Actions job names consistent
like "{platform} / make ({make target}, ...)"
2019-12-30 23:30:35 -08:00
Takashi Kokubun fe158e4c65
Do not doubly build on trunk 2019-12-30 23:23:25 -08:00
MSP-Greg eb2b425821 MinGW on Actions (#2791)
* MinGW - skip spec in spec/ruby/optional/capi/thread_spec.rb

C-API Thread function rb_thread_call_without_gvl
      -- runs a C function with the global lock unlocked and unlocks IO with the generic RUBY_UBF_IO

stops/freezes spec tests

See https://bugs.ruby-lang.org/issues/16265

* MinGW - skip test test/resolv/test_dns.rb

Test times out in CI (both AppVeyor & Actions), cannot repo locally

* MinGW - skip test test/ruby/test_thread_queue.rb

* Add Actions mingw.yml
2019-12-30 23:19:31 -08:00
Takashi Kokubun 79c4202676
Revert "Remove TEST_BUNDLED_GEMS_ALLOW_FAILURES"
This reverts commit 75e8dd58f6.

We seem to randomly hit another issue these days:
https://github.com/ruby/ruby/runs/368756135
https://github.com/ruby/ruby/runs/368756191
2019-12-30 23:09:24 -08:00
Hiroshi SHIBATA 03c504ac59
Commented-out btest on cygwin environment of GitHub Actions 2019-12-25 09:38:12 +09:00
Kazuhiro NISHIYAMA 26774351dc
Ignore error of `apt-get update` in MJIT workflow too 2019-12-13 18:06:36 +09:00
Kazuhiro NISHIYAMA d5c73681f8
Ignore error of `apt-get update` on GitHub Actions 2019-12-13 18:04:21 +09:00
Kazuhiro NISHIYAMA 7fa821a80d
Try to use `set-output`
because commit info are not necessary in env.
2019-12-11 14:03:30 +09:00
Kazuhiro NISHIYAMA 35adc47e7e
Create dummy files when check only
because foo.rb in build directory breaks test-bundler
https://github.com/ruby/ruby/runs/343168046#step:20:125
2019-12-11 13:08:21 +09:00
Kazuhiro NISHIYAMA 4f5dc15b04 Create more dummy files in build directory 2019-12-11 12:35:51 +09:00
Kazuhiro NISHIYAMA 1ed0212bcf Do not load files in build directory
related https://bugs.ruby-lang.org/issues/16177
2019-12-11 12:35:51 +09:00
Yusuke Endoh c596e01a49 Move SECURITY.md into .github/ to reduce the files on the top directory 2019-12-10 18:05:51 +09:00
Nobuyoshi Nakada 129c3216d9
[cygwin] Removed unnecessary packages 2019-12-10 12:35:57 +09:00
Nobuyoshi Nakada cd35c09540
[cygwin] Removed unnecessary `-c` options 2019-12-10 12:35:44 +09:00
Kazuhiro NISHIYAMA a5e6a50cb8 Add cache of cygwin packages 2019-12-09 16:08:12 +09:00
Kazuhiro NISHIYAMA ea8f03e86c Remove unused branch name 2019-12-09 16:08:12 +09:00
Kazuhiro NISHIYAMA 801eafcc14 Split cygwin-chocolatey cache 2019-12-09 16:08:12 +09:00
Kazuhiro NISHIYAMA c19e62ddc9 Remove debug print 2019-12-09 16:08:12 +09:00
Nobuyoshi Nakada 963b84a51b Separate steps 2019-12-09 00:12:45 +09:00
Nobuyoshi Nakada 5e65e65bd9 Set PATH at once 2019-12-09 00:12:45 +09:00
Nobuyoshi Nakada d00349f994 Fixed the checking out source 2019-12-09 00:12:45 +09:00
Daisuke Fujimura (fd0) 689e744855 Add .github/workflows/cygwin.yml 2019-12-09 00:12:45 +09:00
Kazuhiro NISHIYAMA c064018a75 Make extract-gems only if test_task is check 2019-11-30 16:44:52 +09:00
Kazuhiro NISHIYAMA bb3542cc6b Add update-gems before extract-gems
(windows.yml used `nmake up`)
2019-11-30 16:44:52 +09:00
Kazuhiro NISHIYAMA 2eb4afb10b Add extract-gems to GitHub Actions CI 2019-11-30 16:44:52 +09:00
Kazuhiro NISHIYAMA 416cccc6ec Drop windows-2016 on GitHub Actions
https://help.github.com/en/actions/automating-your-workflow-with-github-actions/software-installed-on-github-hosted-runners#windows-server-2016
> Note: The Windows Server 2016 virtual environment will be removed on December 3, 2019.
2019-11-27 12:32:42 -08:00
Kazuhiro NISHIYAMA 5a6e3e7552
Add `--with-openssl-dir` to windows on GitHub Actions
7bd7a013b1/checks?check_suite_id=328682567#step:10:1634
```
*** Following extensions are not compiled:
openssl:
	Could not be configured. It will not be installed.
"	d:/a/ruby/ruby/src/ext/openssl/extconf.rb:97: OpenSSL library could not be found. You might want to use --with-openssl-dir=<dir> option to specify the prefix where OpenSSL is installed."
```
2019-11-26 16:19:18 +09:00
Takashi Kokubun 818708edab
Stop using undefined matrix.os for macOS
and use github.workflow instead. Applied a similar change to MJIT too.
2019-11-22 14:22:34 -08:00
Kazuhiro NISHIYAMA 75e8dd58f6
Remove TEST_BUNDLED_GEMS_ALLOW_FAILURES
https://github.com/seattlerb/minitest/pull/798 is closed
2019-11-19 13:06:40 +09:00
Takashi Kokubun afc93e96ff
Make GitHub Actions notification more like Travis
Build's sequential number is a link in Travis, and also YYYY-MM-DD-XX is
a little hard to parse.
2019-11-13 09:31:03 -08:00
Kazuhiro NISHIYAMA 7f2c98b11d Use shallow-since instead of depth
commit number of today requires log since 0:00 UTC.
So commits of 24 hours are enough.

https://www.git-scm.com/docs/git-clone#Documentation/git-clone.txt---depthltdepthgt
> Implies --single-branch unless --no-single-branch is given to fetch the histories near the tips of all branches.

So I add `--single-branch` too.
2019-11-13 20:21:09 +09:00
Kazuhiro NISHIYAMA 990728170c Add commit number of today to notification of mjit CI too 2019-11-13 20:18:46 +09:00
Takashi Kokubun bdf71a3ef0
Fix MJIT test's Slack notification 2019-11-12 23:04:25 -08:00
Takashi Kokubun 331655cbe7
Migrate Wercker MJIT tests to Actions (#2676)
* Migrate Wercker MJIT tests to Actions

* Support pull request for testing

* Capitalize other jobs too

* Make it a command name for consistency [ci skip]

* Remove wercker.yml

* Add --jit-verbose=2 for debugging

* Install MJIT headers

* Separate install for sudo

* Trigger build
2019-11-12 21:48:05 -08:00
Kazuhiro NISHIYAMA c4064aef7f Add commit number of today to notification of GitHub Actions 2019-11-13 14:25:30 +09:00
Takashi Kokubun 245977b286
Stop debugging the same thing twice
See L25-28
2019-11-12 20:57:07 -08:00
Takashi Kokubun 9ee88a070f
Remove MSPECOPT formerly for debugging
At least the comment looks obsoleted. Aren't we using $JOBS already?
2019-11-12 20:56:16 -08:00
Takashi Kokubun 02b6451c17
Improve Actions job name shown on toolip
Hoping to make it like `make (check, ...)`, `make (test-bundler, ...)`
instead of `latest (...)` because some of the jobs are already not
running on a latest platform.
2019-11-12 20:44:01 -08:00
Takashi Kokubun 3118c7a2d2
Run test-bundler / test-bundled-gems for Ubuntu
only once. Doing it on multiple Ubuntu versions may not worth it.
2019-11-12 20:39:45 -08:00
Kazuhiro NISHIYAMA 3ad78264dc
Use style of set-env
https://help.github.com/en/actions/automating-your-workflow-with-github-actions/development-tools-for-github-actions#set-an-environment-variable-set-env
2019-11-13 13:13:52 +09:00
Kazuhiro NISHIYAMA b41a19f92f
Add matrix.os to cache key (#2671)
* Add matrix.os to cache key
* Use multi-line string instead of array
  ref https://github.com/actions/cache/issues/44
2019-11-12 17:22:19 +09:00
Kazuhiro NISHIYAMA 593f0b8853 Try to use actions/cache on windows 2019-11-12 12:05:10 +09:00
Nobuyoshi Nakada 1390d56ecf
Set $JOBS to Tests for parallel tests 2019-11-05 10:28:44 +09:00
Nobuyoshi Nakada c0c9a00f83 Simplify test tasks
Removed `if` conditions separating `test-bundled-gems`, and pass
`TESTOPTS` and `TEST_BUNDLED_GEMS_ALLOW_FAILURES` via `env`.
2019-11-05 02:12:26 +09:00
Nobuyoshi Nakada 6e0b40af3d Try out-of-place build 2019-10-28 22:05:57 +09:00
Kazuhiro NISHIYAMA 3e83f1f00a Add more matrix info to slack payload 2019-10-28 16:53:02 +09:00
Kazuhiro NISHIYAMA 85d966af21 Add ubuntu-16.04 to matrix of GitHub Actions 2019-10-27 20:19:04 +09:00
Kazuhiro NISHIYAMA a7ec88ad61
Add `shell: cmd`
Use cmd instead of new default shell for `call`.
https://github.blog/changelog/2019-10-17-github-actions-default-shell-on-windows-runners-is-changing-to-powershell/

7bcc639c72/checks (step):6:5
```
call : The term 'call' is not recognized as the name of a cmdlet, function, script file, or operable program.
```
2019-10-25 10:45:46 +09:00
Nobuyoshi Nakada 5040eea959
Do not show progress at chocolatey 2019-10-25 08:54:33 +09:00
Nobuyoshi Nakada b7c8874b62
Install openssl with chocolatey
OpenSSL in chocolatey is 1.1.1d but outdated 1.0.2s is in vcpkg.
2019-10-25 02:31:21 +09:00
Nobuyoshi Nakada 826bbf9837
Split by `&&` 2019-10-25 02:24:00 +09:00
Nobuyoshi Nakada 967b924aa0
Expanded an environment variable
PowerShell does not expand by `%varname%` syntax.
2019-10-25 02:08:03 +09:00
Nobuyoshi Nakada b86af95c5b
Get rid of control flow by cmd.exe
Github workflow stopped using cmd.exe suddenly, and `||` and `&&`
seem not working in PowerShell.
2019-10-25 02:04:14 +09:00
Kazuhiro NISHIYAMA 0b26f56a77
Remove unreachable step level `[ci skip]` 2019-10-10 16:48:26 +09:00
Kazuhiro NISHIYAMA 6f11c3b335
Check '[ci skip]' at job level 2019-10-09 17:46:05 +09:00
Kazuhiro NISHIYAMA 55de0282da
Remove draft-release.yml [ci skip]
I thought default branch's workflow runs on any tags,
but it does not run for stable branches without draft-release.yml.
So I abandoned, and use workflow in ruby/actions instead.
2019-10-01 21:26:54 +09:00
Benoit Daloze 59060aadea Run test-unit tests in CI 2019-09-30 00:16:11 +02:00
Benoit Daloze d090e449ef Exclude the test-unit bundled gem tests since they also fail since the Time#inspect change
* See https://github.com/test-unit/test-unit/issues/165
2019-09-29 13:57:54 +02:00
Benoit Daloze e3b11566bf Remove continue-on-error for test-bundled-gems
* Otherwise, it takes a very long time to notice those tests broke.
2019-09-29 13:57:54 +02:00
Hiroshi SHIBATA c8f7168653
Revert the accidentally commits related GitHub Actions 2019-09-26 19:22:30 +09:00
Hiroshi SHIBATA ad638a713a
[rubygems/rubygems] Added jruby to matrix
https://github.com/rubygems/rubygems/commit/0832c079c8
2019-09-26 17:48:01 +09:00
Hiroshi SHIBATA 769a28d7dc
[rubygems/rubygems] Removed 2.2
https://github.com/rubygems/rubygems/commit/7fd2460f76
2019-09-26 17:48:01 +09:00
Hiroshi SHIBATA ba8fb735cb
[rubygems/rubygems] Added rvm workflow for Ruby 2.2 and 2.7
https://github.com/rubygems/rubygems/commit/d4ba75dfd2
2019-09-26 17:48:01 +09:00
Hiroshi SHIBATA 01c90f17d9
[rubygems/rubygems] Removed the needless configurations
https://github.com/rubygems/rubygems/commit/7134c49179
2019-09-26 17:48:01 +09:00
Hiroshi SHIBATA f5248f6f50
[rubygems/rubygems] Added the initial workflow file.
https://github.com/rubygems/rubygems/commit/6405a1e51a
2019-09-26 17:48:01 +09:00
Kazuhiro NISHIYAMA a1dcb9daa5
Rename from ruby-x.y.z.ext.draft to ruby-x.y.z-draft.ext [ci skip] 2019-09-24 21:52:23 +09:00
Kazuhiro NISHIYAMA a0ce0b6297
Add `if: always()` because 2.4.x's `make check` failed on snapshot [ci skip]
`check-snapshot-ruby_2_4` uses `make test` instead of `make check`.
95692e54f4/.github/workflows/snapshot.yml (L448-L449)

`draft-release` use `make check` to make it simple, and
actions is required regardless of success or failure.

On the other hand, snapshot success can be ignored,
so normally it should not fail.
2019-09-22 10:11:51 +09:00
Kazuhiro NISHIYAMA 9fb9f2d318
Add draft-release.yml [ci skip]
Make draft release packages. (Release packages are official after tests and release announce.)

- Copy from ruby/actions
- Change trigger tags from `draft/v*` to `v*` (I use `draft/v*` on ruby/actions because I want to avoid to cause trouble with shell history on working directory of ruby/ruby.)
- Change secrets names because secrets are repository local and use different names between ruby/ruby and ruby/actions.
2019-09-19 12:47:09 +09:00
Kazuhiro NISHIYAMA 0785469a40 `brew install` may fail, so try to use `tool/travis_retry.sh`
https://github.com/ruby/ruby/runs/224877570#step:3:1008
```
Error: No such file or directory @ dir_s_rmdir - /Users/runner/Library/Caches/Homebrew/downloads/ca756e367eb98d2b525e72b311633c27ffc74eca825a5392153b3488d1adb732--libssh2-1.9.0.mojave.bottle.tar.gz
```
2019-09-17 18:02:03 +09:00
Kazuhiro NISHIYAMA 3c162df9d4 Dump some information 2019-09-13 13:44:03 +09:00
Kazuhiro NISHIYAMA 9f86e5ecb6
Moved coverage.yml to https://github.com/ruby/actions [ci skip] 2019-09-12 18:28:46 +09:00
Kazuhiro NISHIYAMA fba5bbc695
Moved doxygen.yml to https://github.com/ruby/actions [ci skip] 2019-09-11 23:39:36 +09:00
Kazuhiro NISHIYAMA 489676bd20
Add `--no-progress` to `aws s3` [ci skip]
https://docs.aws.amazon.com/cli/latest/reference/s3/sync.html
> --no-progress (boolean) File transfer progress is not displayed. This flag is only applied when the quiet and only-show-errors flags are not provided.
2019-09-11 09:35:06 +09:00
Kazuhiro NISHIYAMA c725a4e48f
Check github.repository in doxygen.yml [ci skip] 2019-09-07 14:03:29 +09:00
Kazuhiro NISHIYAMA 7a2bd91ed2
Try to fix `invalid option`
https://github.com/ruby/ruby/runs/212727409#step:11:67
```
invalid option: -j5
```
2019-09-05 17:51:02 +09:00
Kazuhiro NISHIYAMA f4df9fb46b
Change name to `Tests (test-bundled-gems)` in macos.yml too 2019-09-05 17:47:51 +09:00
Kazuhiro NISHIYAMA ccad34f453
Add TEST_BUNDLED_GEMS_ALLOW_FAILURES=minitest 2019-09-04 12:51:39 +09:00
Kazuhiro NISHIYAMA 1e30d0af7d
`$JOBS` does not set in `env:` 2019-09-04 12:03:28 +09:00
Kazuhiro NISHIYAMA b0d0b850bc
Use RUBY_TESTOPTS instead of TESTOPTS
https://github.com/ruby/ruby/pull/2417#issuecomment-526884646
> `TESTOPTS` is defaulted to `$(RUBY_TESTOPTS)` in `common.mk` file.
> Use the latter name to pass options via an environment variable.
2019-09-04 11:50:37 +09:00
Takashi Kokubun 7cb19b3f5b
Roughly retry choco install commands
to deal with random failures:
https://github.com/ruby/ruby/runs/210617845
2019-09-03 21:03:11 +09:00
Kazuhiro NISHIYAMA 36a0c668b6
Remove SKIP_DOXYGEN because job.env does not set in `if:` 2019-09-03 18:36:08 +09:00
Kazuhiro NISHIYAMA 624a0ad44d
Use `set-env` instead of `grep` in each step 2019-08-28 10:07:54 +09:00
Kazuhiro NISHIYAMA 108dbb389b
Use JOBS again like macos.yml 2019-08-28 09:45:31 +09:00
Kazuhiro NISHIYAMA 330c2f7597
Change name to `Tests (test-bundled-gems)` 2019-08-28 09:41:14 +09:00
Kazuhiro NISHIYAMA 230f405479
Add name to autoconf 2019-08-28 09:38:52 +09:00
Kazuhiro NISHIYAMA 17c0ce3798
Remove GITHUB_SHA from jobs.<job_id>.steps.env
because default value overrides it.
https://help.github.com/en/articles/virtual-environments-for-github-actions#environment-variables
2019-08-28 09:20:07 +09:00
Kazuhiro NISHIYAMA 767992329e
Allow missing projectnumber [ci skip] 2019-08-28 09:15:40 +09:00
Kazuhiro NISHIYAMA d4de5e6459
Show projectnumber in current index.html and GITHUB_SHA 2019-08-28 09:13:43 +09:00
Kazuhiro NISHIYAMA cbcad66741
Fix doxygen action
- Fix checkout error: `fatal: destination path '.' already exists and is not an empty directory.`
- Remove `GITHUB_SHA` in env, because set automatically
  https://help.github.com/en/articles/virtual-environments-for-github-actions#environment-variables
- Change minute from 0 to 20 for test soon
2019-08-28 02:16:28 +09:00
Kazuhiro NISHIYAMA 71e5871c3b
Run on schedule only and skip if not modified 2019-08-28 01:48:40 +09:00
Takashi Kokubun dd032a5fb4
Make doxygen / coverage torelant to clone race
a little.

Doing both `git clone --depth=1` and `git reset --hard ${sha}` does not
make sense (the latter command either does nothing or just fails), so I
added non-1 value as a depth.

Maybe we don't need depth=50 for pull_request and schedule, so it's 10
for now.
2019-08-28 00:16:16 +09:00
Takashi Kokubun 4209066f0e
Drop more unused configs from doxygen and coverage
workflows, because mame said he has never seen it.
2019-08-27 23:52:43 +09:00
Takashi Kokubun 3bed468e88
Omit unused matrix strategy from doxygen workflow 2019-08-27 23:49:36 +09:00
Kazuhiro NISHIYAMA d806078237
Add graphviz for dot command 2019-08-27 18:46:16 +09:00
Yusuke Endoh 3ac0b75c45
Doxygen in GitHub Actions (#2406)
* .github/workflows/doxygen.yml: add a workflow for doxygen in Actions
2019-08-27 16:39:42 +09:00
Nobuyoshi Nakada 2fb723b8af
Revert "Explain which test task"
This reverts commit 9bc1667a18.

`name` lines are not expanded.
2019-08-27 15:11:39 +09:00
Yusuke Endoh 0c8525ecc9 .github/workflows/coverage.yml: add a cron job for coverage in Actions 2019-08-27 14:40:59 +09:00
Nobuyoshi Nakada 9bc1667a18
Explain which test task 2019-08-27 14:30:52 +09:00
Kazuhiro NISHIYAMA ccc5b22a7f
Expand JOBS instead of meaningless export (#2402)
* Expand JOBS instead of meaningless export

* Remove -j option in TESTOPTS of test-bundled-gems

https://github.com/ruby/ruby/runs/203129516#step:10:167
> invalid option: -j3
2019-08-26 21:09:02 +09:00
Takashi Kokubun fd20b32130
Make GitHub Actions Slack notification consistent
with Travis, rather than AppVeyor.

Formerly it was made similar to AppVeyor to provide some normal set of
CI failure notification. But for some reason people preferred a shorter
variant and introduced a1d606c079 and
d8d8015b93.

Instead of AppVeyor format, this commit chose Travis-like format to achieve
consistency and to include usual CI-failure information, while keeping
it one-liner for people who prefer short notifications.

Note that this shrinks the 40-char sha to 10-char, using the new feature
of k0kubun/action-slack@v2.0.0:
1c88a05dac
2019-08-22 23:10:55 +09:00
aycabta d8d8015b93 Remove footer from message to Slack 2019-08-22 09:24:35 +09:00
aycabta a1d606c079 Show short message to Slack 2019-08-22 07:57:12 +09:00
Takashi Kokubun c030cec7ca
Debug GitHub context on broken notification
sometimes Slack notification footer becomes just " at ".
It seems like `github.event.head_commit` is missing. Let me debug the
context.
2019-08-21 23:13:22 +09:00
Takashi Kokubun d10e28b875
Skip tests on Actions if [ci skip]
It seems that we cannot easily apply job-level [ci skip].
Therefore this commit skips only Tests step if it's [ci skip].
2019-08-20 23:58:37 +09:00
Kazuhiro NISHIYAMA 45bed2850e
Reduce sub-shell and use `&&` instead of `;` 2019-08-19 19:37:07 +09:00
Takashi Kokubun 6c2aa8689a
Roughly retry `brew update`
as it failed randomly https://github.com/ruby/ruby/runs/196712109
2019-08-19 14:59:59 +09:00
Takashi Kokubun d106f08291
Stop reporting test-bundled-gems results
by marking continue-on-error.

I dropped it to test Slack notification, and I finished to test it.
2019-08-19 09:41:52 +09:00
Takashi Kokubun c100e3856a
Workaround errors on multi-line commit message
by using toJson with fields.
2019-08-19 03:40:34 +09:00
Takashi Kokubun e139d27748
Make Slack notification available
for macOS / Windows as well.

Docker-based GitHub Action does not work on these OSes.
2019-08-19 03:14:19 +09:00
Takashi Kokubun 2f6c8ed26e
Implement Slack notification for Actions 2019-08-19 01:49:52 +09:00
Takashi Kokubun e4c43207f9
Revert "Try notifying Slack from Actions"
This reverts commit d8807e8b1a.

We'd need more features. Reverting to customize this later.
2019-08-18 23:32:49 +09:00
Takashi Kokubun d8807e8b1a
Try notifying Slack from Actions
https://github.com/8398a7/action-slack
https://github.com/marketplace/actions/action-slack
2019-08-18 23:19:10 +09:00
Takashi Kokubun a0e80c7cb7
Drop continue-on-error for make check
Like macos.yml, we don't need to ignore `make check` failure.
2019-08-18 09:30:36 +09:00
Hiroshi SHIBATA 2468466a1a Added missing condition for test-bundler and test-bundled-gems. 2019-08-17 13:27:11 +09:00
Hiroshi SHIBATA ea496e9fb2 Added test check to ubuntu on GitHub Actions 2019-08-17 13:27:11 +09:00
Takashi Kokubun 045152df9e
Disable fail-fast of GitHub Actions
This is default: true
https://help.github.com/en/articles/workflow-syntax-for-github-actions#jobsjob_idstrategyfail-fast

When `make check` fails, we do not want to cancel `make test-bundler`.
2019-08-17 09:43:06 +09:00
Takashi Kokubun 9874dca3e7 Mark bundler / bundled-gems as continue-on-failure
because these tests have failed too often and it's false-positive for
checking healthiness of the master branch.
2019-08-14 23:02:09 +09:00
Takashi Kokubun bf77f43b39
Update the description of check_branch 2019-08-14 22:36:49 +09:00
Takashi Kokubun 8be521662d
Rename check_branch.master to pull_request.check_branch
because it's shown as just "master" on a pull request which does not
have the check_branch.master job yet.

"check_branch" would be easier to understand and now we can grep it from
master branch.
2019-08-14 22:22:12 +09:00
Takashi Kokubun 765d603153
Try to fix variable reference on Windows (#2361)
https://github.com/ruby/ruby/runs/192869165
2019-08-14 10:52:15 +09:00
Takashi Kokubun 8a687b8a4f Stop using official actions/checkout
because it has been unstable, and also it sometimes does not work for a
pull request like:
https://github.com/ruby/ruby/pull/2358/checks?check_run_id=192685048#step:4:17
2019-08-14 10:22:25 +09:00
Takashi Kokubun 79f9c626b6
Use the official actions/checkout again (#2357)
because clone does not checkout exact commit sha, and also we'd need to handle
pull_request on fork, so I tentatively stopped to do this.
2019-08-13 23:36:31 +09:00
Takashi Kokubun 94ca848ca1
Update the comment in check_branch [ci skip] (#2355) 2019-08-13 22:56:44 +09:00
Takashi Kokubun 3979f22cc1
Explain the current status of branches [ci skip] (#2350) 2019-08-13 01:45:10 +09:00
Takashi Kokubun 4e418a6c06
Update check_branch description a little [ci skip] 2019-08-13 01:29:37 +09:00
Takashi Kokubun edd2538268
Add a quick job to be used for branch protection 2019-08-12 23:44:34 +09:00
Hiroshi SHIBATA 188381053c
added --disable-install-doc to Windows workflow of GitHub Actions
Closes: https://github.com/ruby/ruby/pull/2346
2019-08-12 20:11:49 +09:00
Hiroshi SHIBATA 8d50bf40d9
Try to nmake test 2019-08-12 20:11:49 +09:00
Hiroshi SHIBATA 0fd0f74508
Try to merge windows 2016 and 2019 2019-08-12 20:11:49 +09:00
Hiroshi SHIBATA 040bf4c0a6
Added windows-2019 workflow 2019-08-12 20:11:49 +09:00
Hiroshi SHIBATA 981f0be6ff
Try to nmake 2019-08-12 20:11:49 +09:00
Hiroshi SHIBATA bbc5e97b95
Migrate Windows 2016 env to GitHub Actions from AzurePipelines 2019-08-12 20:11:49 +09:00
Takashi Kokubun 5edf921e9b
Revert "Roughly retry `brew update` on GitHub Actions"
This reverts commit 5ee11a95ff.

Sorry, timeout(1) was missing.
2019-08-12 17:55:57 +09:00
Takashi Kokubun 927a43a503
Drop unused ccache
unlike Travis, it seems not used.
2019-08-12 17:46:16 +09:00
Takashi Kokubun 5ee11a95ff
Roughly retry `brew update` on GitHub Actions
because it has failed often on Travis.
2019-08-12 17:44:03 +09:00
Takashi Kokubun d5250808e1
Try testing openssl@1.1 on GitHub Actions
because somebody may want to remove the duplicated Travis osx usage
later.
2019-08-12 16:37:47 +09:00
Takashi Kokubun b1ef14176b
We did not have tool/ before checkout
anyway we don't need authorization here.
Also retry does not seem to work in the original version, so let's
extend this with retries as a separate github action later.
2019-08-12 14:37:26 +09:00
Takashi Kokubun 4f10a61eaa
Stop relying on actions/checkout
because it randomly fails on authorization like:
https://github.com/ruby/ruby/runs/190887455
Also the backoff seems too short. Maybe we need tool/travis_retry.sh for
this too.

Cloning ruby/ruby does not need authorization. We don't need to use
actions/checkout.
2019-08-12 14:30:43 +09:00
Hiroshi SHIBATA 8a8f680f01
Re-use GITHUB_ACTION variables for filtering bundler examples. 2019-08-12 12:14:39 +09:00
Hiroshi SHIBATA e96321d006
Removed make check 2019-08-12 12:14:39 +09:00
Hiroshi SHIBATA fc97aa9313
Fixed the world writable dirs on Ubuntu environment. 2019-08-12 12:14:39 +09:00
Hiroshi SHIBATA cfb192a7b9
Added test-bundled-gems to GitHub Actions 2019-08-12 12:14:39 +09:00
Hiroshi SHIBATA 11a09d78c1
Port ubuntu workflow based on macos 2019-08-12 12:01:39 +09:00
Hiroshi SHIBATA 91fcd87f5c
Increase fetch-depth 2019-08-11 12:17:22 +09:00
Hiroshi SHIBATA bb2f24251f
GitHub Actions does not support ANSI color code. Skip failing examples. 2019-08-11 12:17:22 +09:00
Hiroshi SHIBATA c685679e25
Use check. 2019-08-11 12:17:22 +09:00
Hiroshi SHIBATA e7996e0fd6
Try to migrate test-bundler to Actions. 2019-08-11 12:17:22 +09:00
Takashi Kokubun c1c8577088
Fix wrong pull_request filter
The specification was not triggered on a pull request.
2019-08-10 20:25:59 +09:00
Takashi Kokubun a6c5ce7a9b
Increase the fetch-depth of GitHub Actions
because small numbers had made Azure Pipelines in the past and it's
using 20 now. I heard GitHub Actions has more parallelism, so it should
be okay.
2019-08-10 19:44:39 +09:00
Takashi Kokubun b3903ef2a1
Set more descriptive labels to workflow 2019-08-10 19:38:28 +09:00
Takashi Kokubun 59a8003ac5
Drop confusing label from workflow
because it's doing more than test-all
2019-08-10 19:33:12 +09:00
Takashi Kokubun 6205f95539
Escape asterisk on pull request paths 2019-08-10 19:29:39 +09:00
Takashi Kokubun e43b3bb442
Skip running GitHub Actions on trunk 2019-08-10 19:28:10 +09:00
Takashi Kokubun 9b203959d5
Rename workflow.yml to macos.yml
to allow having other workflows separately, and configure `name` to
simplify a tooltip label on GitHub.
2019-08-10 19:19:25 +09:00
Takashi Kokubun 49f88eb2f1
Try building workflow on push 2019-08-10 09:34:13 +09:00
Aaron Patterson cb390e87dc
Add more runners
Closes: https://github.com/ruby/ruby/pull/2327
2019-08-09 13:15:18 +09:00
Aaron Patterson 54bdfe27f3
Run macOS tests on GitHub Actions
This commit sets up the CI integration on GitHub Actions.  We should
give it a try because queue times are lower and I think we get more
CPUs.

Closes: https://github.com/ruby/ruby/pull/2327

Co-Authored-By: John Hawthorn <john@hawthorn.email>
2019-08-09 13:15:12 +09:00
Aaron Patterson c7acb37248
Enable GitHub Actions on Ruby
This just enables GitHub actions on our repository so we can try it out.
2019-08-08 11:29:15 -07:00