[前][次][番号順一覧][スレッド一覧]

ruby-changes:63420

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Fri, 23 Oct 2020 10:39:02 +0900 (JST)
Subject: [ruby-changes:63420] 7cf34cfaa3 (master): .github/workflows/spec_guards.yml add

https://git.ruby-lang.org/ruby.git/commit/?id=7cf34cfaa3

From 7cf34cfaa3db4b6eb63dba61108956468140564f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?=
 <shyouhei@r...>
Date: Wed, 21 Oct 2020 14:06:49 +0900
Subject: .github/workflows/spec_guards.yml add

Translate a part of .travis.yml into GitHub Actions workflow.

diff --git a/.github/workflows/spec_guards.yml b/.github/workflows/spec_guards.yml
new file mode 100644
index 0000000..5e8eaaa
--- /dev/null
+++ b/.github/workflows/spec_guards.yml
@@ -0,0 +1,40 @@ https://github.com/ruby/ruby/blob/trunk/.github/workflows/spec_guards.yml#L1
+name: Rubyspec Guard Checks
+
+on: [push, pull_request]
+
+jobs:
+  rubyspec:
+    name: Rubyspec
+    runs-on: ubuntu-20.04
+    if: "!contains(github.event.head_commit.message, '[ci skip]')"
+    strategy:
+      matrix:
+        ruby:
+#         - ruby-2.1
+#         - ruby-2.2
+#         - ruby-2.3
+#         - ruby-2.4
+          - ruby-2.5
+          - ruby-2.6
+          - ruby-2.7
+
+    steps:
+      - uses: actions/checkout@v2
+      - uses: ruby/setup-ruby@v1
+        with:
+          ruby-version: ${{ matrix.ruby }}
+      - run: ruby ../mspec/bin/mspec
+        working-directory: spec/ruby
+      - uses: k0kubun/action-slack@v...
+        with:
+          payload: |
+            {
+              "ci": "GitHub Actions",
+              "env": "${{ github.workflow }} / rubyspec @ ${{ matrix.ruby }}",
+              "url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}",
+              "commit": "${{ github.sha }}",
+              "branch": "${{ github.ref }}".split('/').reverse()[0]
+            }
+        env:
+          SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
+        if: failure() && github.event_name == 'push'
diff --git a/.travis.yml b/.travis.yml
index ee22583..ca36c55 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -233,28 +233,6 @@ env: https://github.com/ruby/ruby/blob/trunk/.travis.yml#L233
         zlib1g-dev:armhf
         zlib1g:armhf
 
-  - &spec-on-old-ruby
-    language: ruby
-    before_install:
-    install:
-    before_script: chmod -R u+w spec/ruby
-    # -j randomly hangs.
-    script: ruby -C spec/ruby ../mspec/bin/mspec .
-
-  - &rubyspec25
-    name: Check ruby/spec version guards on Ruby 2.5
-    rvm: 2.5.7
-    <<: *spec-on-old-ruby
-    after_failure:
-      - echo "ruby/spec failed on Ruby 2.5. This is likely because of a missing ruby_version_is guard, please add it. See spec/README.md."
-
-  - &rubyspec27
-    name: Check ruby/spec version guards on Ruby 2.7
-    rvm: 2.7.0
-    <<: *spec-on-old-ruby
-    after_failure:
-      - echo "ruby/spec failed on Ruby 2.7. This is likely because of a missing ruby_version_is guard, please add it. See spec/README.md."
-
   - &baseruby
     name: "BASERUBY: Ruby 2.2"
     <<: *gcc-8
@@ -268,8 +246,6 @@ matrix: https://github.com/ruby/ruby/blob/trunk/.travis.yml#L246
     - <<: *x86_64-linux
     - <<: *i686-linux
     - <<: *baseruby
-    - <<: *rubyspec25
-    - <<: *rubyspec27
     # Build every commit (Allowed Failures):
     - <<: *arm32-linux
     - <<: *arm64-linux
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]