From 4d799162dbeac70c4b7e4d6007102e476ee354b5 Mon Sep 17 00:00:00 2001 From: Piotr Kuczynski Date: Mon, 2 Aug 2021 11:22:03 +0200 Subject: [PATCH 1/9] Move CI from Travis to Github Actions --- .github/workflows/build.yml | 34 ++++++++++++++++++++++++++++++++++ .travis.yml | 15 --------------- 2 files changed, 34 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..934b946f --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,34 @@ +name: ci + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@master + + - name: Setup ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.3 + bundler: 1 + + - name: Restore cache + uses: actions/cache@v2 + with: + path: ${{ env.BUNDLE_PATH }} + key: ruby-gems-${{ hashFiles('.ruby-version', 'Gemfile') }} + restore-keys: | + ruby-gems- + + - name: Install + run: | + bundle install diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 64f544c8..00000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -rvm: - - "--install ." -language: ruby -notifications: - irc: - channels: - - "irc.freenode.org#rvm-test" - - "irc.freenode.org#rvm" - email: false - slack: - rooms: - secure: qvIc4p+dMcKp6g0uBln2O3ZhhMt+FFRpWyUC0MIaYN0gfhEmqN9kkDzbjouQSWfDTBWRRwFFt4j5G2VziSlYFxp8OJPiQMi7DVMKJAJAzLzIlm/P984A8pa95J8q2ZBJxs8KEdZy1xaVQUyywQ+NavLHxqr9dSPc+mwkdeHwPK8= - on_success: change - on_failure: always - on_pull_requests: true From a5b6a75b8c3743d9367a1bee42a386059814860f Mon Sep 17 00:00:00 2001 From: Piotr Kuczynski Date: Mon, 2 Aug 2021 11:22:26 +0200 Subject: [PATCH 2/9] Rename --- .github/workflows/{build.yml => ci.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{build.yml => ci.yml} (100%) diff --git a/.github/workflows/build.yml b/.github/workflows/ci.yml similarity index 100% rename from .github/workflows/build.yml rename to .github/workflows/ci.yml From 0d3bd21764eb5abb82b8b800db2550cf2336d80e Mon Sep 17 00:00:00 2001 From: Piotr Kuczynski Date: Mon, 2 Aug 2021 11:23:40 +0200 Subject: [PATCH 3/9] Simplify --- .github/workflows/ci.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 934b946f..adf44ecd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,13 +1,5 @@ name: ci - -on: - push: - branches: - - master - pull_request: - branches: - - master - +on: [push, pull_request] jobs: build: runs-on: ubuntu-latest From 968164855113de745513cc22ae1f95b94df7df2d Mon Sep 17 00:00:00 2001 From: Piotr Kuczynski Date: Mon, 2 Aug 2021 11:25:10 +0200 Subject: [PATCH 4/9] Try --- .github/workflows/ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index adf44ecd..52f4f8c4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,11 @@ name: ci -on: [push, pull_request] + +on: + push: + branches: + - master + pull_request + jobs: build: runs-on: ubuntu-latest From 46abb0fee5fcc74286d8eb415dea82407a04bdd4 Mon Sep 17 00:00:00 2001 From: Piotr Kuczynski Date: Mon, 2 Aug 2021 11:26:59 +0200 Subject: [PATCH 5/9] Try --- .github/workflows/{ci.yml => build.yml} | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) rename .github/workflows/{ci.yml => build.yml} (92%) diff --git a/.github/workflows/ci.yml b/.github/workflows/build.yml similarity index 92% rename from .github/workflows/ci.yml rename to .github/workflows/build.yml index 52f4f8c4..934b946f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/build.yml @@ -4,7 +4,9 @@ on: push: branches: - master - pull_request + pull_request: + branches: + - master jobs: build: From 0bb36584a5a74673ad7963c35bd92f072d76c6d5 Mon Sep 17 00:00:00 2001 From: Piotr Kuczynski Date: Mon, 2 Aug 2021 11:29:28 +0200 Subject: [PATCH 6/9] Do cache differently --- .github/workflows/build.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 934b946f..701e2ebb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,14 +20,7 @@ jobs: with: ruby-version: 2.3 bundler: 1 - - - name: Restore cache - uses: actions/cache@v2 - with: - path: ${{ env.BUNDLE_PATH }} - key: ruby-gems-${{ hashFiles('.ruby-version', 'Gemfile') }} - restore-keys: | - ruby-gems- + bundler-cache: true - name: Install run: | From 7a33de31d276250794d2a4cdc6a02a9c570e96c4 Mon Sep 17 00:00:00 2001 From: Piotr Kuczynski Date: Mon, 2 Aug 2021 11:31:55 +0200 Subject: [PATCH 7/9] Simplify --- .github/workflows/build.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 701e2ebb..99aebc46 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,16 +12,8 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@master + - uses: actions/checkout@v2 - - name: Setup ruby - uses: ruby/setup-ruby@v1 + - uses: ruby/setup-ruby@v1 with: - ruby-version: 2.3 - bundler: 1 bundler-cache: true - - - name: Install - run: | - bundle install From fbf0f6349d0f1aadafc1c7b6343509ff17caee91 Mon Sep 17 00:00:00 2001 From: Piotr Kuczynski Date: Mon, 2 Aug 2021 11:33:08 +0200 Subject: [PATCH 8/9] Test --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 99aebc46..54490038 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,3 +17,5 @@ jobs: - uses: ruby/setup-ruby@v1 with: bundler-cache: true + + - run: bundle exec rake test From 72ca6911a2252c71975bc49156f524afe3e1a10b Mon Sep 17 00:00:00 2001 From: Piotr Kuczynski Date: Mon, 2 Aug 2021 11:35:59 +0200 Subject: [PATCH 9/9] Upgrade ruby --- .ruby-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ruby-version b/.ruby-version index 276cbf9e..a4dd9dba 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.3.0 +2.7.4