-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #355 from redis-store/add-github-actions
add github actions
- Loading branch information
Showing
10 changed files
with
126 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
changelog: | ||
exclude: | ||
labels: [dependencies] | ||
authors: [renovate-bot] | ||
categories: | ||
- title: Breaking Changes | ||
labels: [breaking] | ||
- title: New Features | ||
labels: [enhancement] | ||
- title: Bug Fixes | ||
labels: [bug] | ||
- title: Other Changes | ||
labels: ["*"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: CI | ||
on: [push] | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
test: | ||
name: "test (ruby: ${{ matrix.ruby }}, redis.rb: ${{ matrix.redis }})" | ||
runs-on: ubuntu-latest | ||
continue-on-error: ${{ contains(matrix.ruby, 'head') }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: | ||
- "2.7" | ||
- "3.0" | ||
- "3.1" | ||
# - 'head' | ||
- "jruby" | ||
# - 'jruby-head' | ||
- "truffleruby" | ||
# - 'truffleruby-head' | ||
redis: | ||
- 4_0_x | ||
- 4_1_x | ||
- 4_x | ||
env: | ||
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/redis_${{ matrix.redis }}.gemfile | ||
services: | ||
redis: | ||
image: redis | ||
ports: | ||
- 6379:6379 | ||
distributed1: | ||
image: redis | ||
ports: | ||
- 6380:6380 | ||
distributed2: | ||
image: redis | ||
ports: | ||
- 6381:6381 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
- run: bundle exec rake | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.1 | ||
bundler-cache: true | ||
- run: bundle exec rake lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Publish | ||
on: | ||
push: | ||
tags: [v*] | ||
permissions: | ||
contents: write | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-ruby@v3 | ||
with: | ||
ruby-version: 3.1 | ||
bundle-cache: true | ||
- run: | | ||
cat << EOF > ~/.gem/credentials | ||
--- | ||
:rubygems_api_key: ${secrets.RUBYGEMS_API_KEY} | ||
EOF | ||
chmod 0600 ~/.gem/credentials | ||
- run: bundle exec rake release | ||
- uses: softprops/action-gh-release@v1 | ||
with: | ||
files: "*.gem" | ||
generate_release_notes: true | ||
prerelease: ${{ contains(github.ref, '.pre') }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,4 +108,4 @@ def teardown | |
@dmr.get "rabbit" | ||
end | ||
end | ||
end | ||
end unless ENV['CI'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters