From d92bb65724e950e565f9827ddec84aec6ed96b3e Mon Sep 17 00:00:00 2001 From: mishina Date: Wed, 20 Apr 2022 15:13:02 +0900 Subject: [PATCH 1/2] Update GitHub Actions workflows - Bump actions/checkout from v2 to v3 - Enable bundler-cache in MSP-Greg/setup-ruby-pkgs@v1 --- .github/workflows/sqlite3-ruby.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/sqlite3-ruby.yml b/.github/workflows/sqlite3-ruby.yml index b3b059ec..a746fec1 100644 --- a/.github/workflows/sqlite3-ruby.yml +++ b/.github/workflows/sqlite3-ruby.yml @@ -14,15 +14,14 @@ jobs: os: [ubuntu, macos ] ruby: [ head, 3.1, '3.0', 2.7, 2.6, 2.5, 2.4, 2.3, 2.2, truffleruby-head ] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: load Ruby and dependencies uses: MSP-Greg/setup-ruby-pkgs@v1 with: ruby-version: ${{ matrix.ruby }} apt-get: libsqlite3-dev + bundler-cache: true # runs 'bundle install' and caches installed gems automatically - - name: install - run: bundle install --jobs 4 --retry 3 - name: compile run: bundle exec rake compile - name: test @@ -39,15 +38,14 @@ jobs: os: [windows ] ruby: [ mingw, 3.1, '3.0', 2.7, 2.6, 2.5, 2.4 ] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: load Ruby and sqlite3 uses: MSP-Greg/setup-ruby-pkgs@v1 with: ruby-version: ${{ matrix.ruby }} mingw: sqlite3 + bundler-cache: true # runs 'bundle install' and caches installed gems automatically - - name: install - run: bundle install --jobs 4 --retry 3 - name: compile msys2 run: bundle exec rake compile:msys2 - name: test From ccfa73628e3d29010b26e1acd2acd0c2cb1736bc Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Wed, 25 May 2022 16:18:11 -0400 Subject: [PATCH 2/2] ci: update concurrency/"on" to match some best practices --- .github/workflows/sqlite3-ruby.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sqlite3-ruby.yml b/.github/workflows/sqlite3-ruby.yml index a746fec1..49bf9388 100644 --- a/.github/workflows/sqlite3-ruby.yml +++ b/.github/workflows/sqlite3-ruby.yml @@ -1,6 +1,19 @@ name: CI - -on: [push, pull_request] +concurrency: + group: "${{github.workflow}}-${{github.ref}}" + cancel-in-progress: true +on: + workflow_dispatch: + push: + branches: + - main + - v*.*.x + tags: + - v*.*.* + pull_request: + types: [opened, synchronize] + branches: + - '*' jobs: CI: