Merge pull request #17 from corgibytes/feature/update-readme-for-v0.7… #140
Workflow file for this run
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
name: CI | |
on: | |
push: | |
branches: [ master, release/* ] | |
tags: [v*] | |
pull_request: | |
branches: [ master, release/* ] | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
name: Build job | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- ruby-version: 1.9.3-p551 | |
bundler-version: 1.17.3 | |
run-linter: false | |
- ruby-version: 2.0.0-p648 | |
bundler-version: 1.17.3 | |
run-linter: false | |
- ruby-version: 2.1.10 | |
bundler-version: 1.17.3 | |
run-linter: false | |
- ruby-version: 2.2.10 | |
bundler-version: 1.17.3 | |
run-linter: false | |
- ruby-version: 2.3.8 | |
bundler-version: 2.2.32 | |
run-linter: false | |
- ruby-version: 2.4.10 | |
bundler-version: 2.2.32 | |
run-linter: false | |
- ruby-version: 2.5.8 | |
bundler-version: 2.2.32 | |
run-linter: false | |
- ruby-version: 2.6.6 | |
bundler-version: 2.2.32 | |
run-linter: true | |
- ruby-version: 3.0.0 | |
bundler-version: 2.2.32 | |
run-linter: true | |
container: ruby:${{ matrix.ruby-version }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install Bundler and gems | |
run: | | |
gem install bundler -v ${{ matrix.bundler-version }} | |
bundle install | |
- name: Linting | |
if: ${{ matrix.run-linter }} | |
run: bundle exec standardrb | |
- name: Unit Tests | |
run: bundle exec rake | |
package: | |
name: Package the Gem | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # Required for Calculate Version step (e.g. GitVersion) | |
- name: Calculate Version | |
id: calculate_version | |
uses: ./.github/actions/calculate-version | |
- name: Update the Version | |
run: | | |
sed -i 's/.*IDE_VERSION=.*/IDE_VERSION="${{ steps.calculate_version.outputs.semver }}"/' lib/ruby-debug-ide/version.rb | |
cat lib/ruby-debug-ide/version.rb | |
- name: Create Gem | |
run: | | |
gem build ruby-debug-ide.gemspec -o ruby-debug-ide-${{ steps.calculate_version.outputs.semver }}.gem | |
- name: Upload GitHub Workflow Artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: corigbytes-ruby-debug-ide-${{ steps.calculate_version.outputs.semver }}.gem | |
path: corigbytes-ruby-debug-ide-${{ steps.calculate_version.outputs.semver }}.gem | |