-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bring the new release process (#1578)
* Bring the new release process * Use cucumber-wire 6.1.1
- Loading branch information
1 parent
f672e3d
commit c3c907f
Showing
5 changed files
with
105 additions
and
21 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,21 @@ | ||
name: Run ruby tests | ||
|
||
inputs: | ||
ruby-version: | ||
description: Version of ruby to use with ruby/setup-ruby@v1 | ||
required: false | ||
default: '3.0' | ||
|
||
runs: | ||
using: "composite" | ||
|
||
steps: | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
|
||
- name: Run tests | ||
run: bundle exec rake | ||
shell: bash |
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 |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Release RubyGems | ||
|
||
on: | ||
push: | ||
branches: | ||
- release/* | ||
|
||
jobs: | ||
|
||
pre-release-check: | ||
name: Perform checks before releasing | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Check commit has been pushed on origin/main | ||
run: | | ||
git fetch --quiet origin main | ||
git merge-base --is-ancestor HEAD origin/main | ||
tests: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
ruby: ['2.5', '2.6', '2.7', '3.0'] | ||
include: | ||
- os: ubuntu-latest | ||
ruby: jruby-9.2 | ||
exclude: | ||
- ruby: '2.5' | ||
os: windows-latest | ||
|
||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Run ruby tests | ||
uses: ./.github/actions/test-ruby | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
|
||
publish-rubygem: | ||
name: Publish Ruby Gem | ||
needs: [pre-release-check, tests] | ||
runs-on: ubuntu-latest | ||
environment: Release | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Publish ruby gem | ||
uses: cucumber/action-publish-rubygem@v1.0.0 | ||
with: | ||
rubygems_api_key: ${{ secrets.RUBYGEMS_API_KEY }} | ||
|
||
create-github-release: | ||
name: Create GitHub Release and Git tag | ||
needs: publish-rubygem | ||
runs-on: ubuntu-latest | ||
environment: Release | ||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: cucumber/action-create-github-release@v1.1.0 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |
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