From 62d4bd22db657202738d14e7902f6a2b2719cf22 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Tue, 14 Sep 2021 08:52:12 +0200 Subject: [PATCH 1/2] build: Use bundler-cache in CI --- .github/workflows/test.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 11428d1..ce2a959 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,6 @@ jobs: uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} - - name: Install dependencies - run: bundle install + bundler-cache: true # 'bundle install' and cache results - name: Run test - run: rake test + run: bundle exec rake From 9d14b214c2aeef00042032296213c5a21b40394a Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Tue, 14 Sep 2021 08:54:12 +0200 Subject: [PATCH 2/2] build: Avoid double-runs for CI This change runs CI only 1 time, no duplicate Jobs for Pull Requests. --- .github/workflows/test.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ce2a959..7178f49 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,10 @@ name: test -on: [push, pull_request] +on: + push: + branches: + - master + pull_request: jobs: test: