forked from ruby-debug/ruby-debug-ide
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f8d60df
commit f1c73c8
Showing
6 changed files
with
210 additions
and
209 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 |
---|---|---|
@@ -1,42 +1,42 @@ | ||
# Calculates the next version number. Assumes | ||
# that the code has already been checked out and that | ||
# the fetch-depth is zero: | ||
## Calculates the next version number. Assumes | ||
## that the code has already been checked out and that | ||
## the fetch-depth is zero: | ||
## | ||
## uses: actions/checkout@v2 | ||
## with: | ||
## fetch-depth: 0 | ||
## | ||
## More details: https://gitversion.net/docs/reference/requirements | ||
# | ||
# uses: actions/checkout@v2 | ||
# with: | ||
# fetch-depth: 0 | ||
#name: 'Calculate Version' | ||
#description: 'Calculate the next version number using GitVersion.' | ||
# | ||
# More details: https://gitversion.net/docs/reference/requirements | ||
|
||
name: 'Calculate Version' | ||
description: 'Calculate the next version number using GitVersion.' | ||
|
||
outputs: | ||
version_formats: | ||
description: 'The various formats for the version. See GitVersion for more details.' | ||
value: ${{ steps.random-number-generator.outputs }} | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install .NET Core 6 | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '6.0.x' | ||
|
||
- name: Install GitVersion | ||
uses: gittools/actions/gitversion/[email protected] | ||
with: | ||
versionSpec: '5.10.3' | ||
|
||
- name: GitVersion Config | ||
uses: gittools/actions/gitversion/[email protected] | ||
with: | ||
useConfigFile: true | ||
additionalArguments: '/showConfig' | ||
|
||
- name: Determine Version | ||
uses: gittools/actions/gitversion/[email protected] | ||
id: gitversion | ||
with: | ||
useConfigFile: true | ||
#outputs: | ||
# version_formats: | ||
# description: 'The various formats for the version. See GitVersion for more details.' | ||
# value: ${{ steps.random-number-generator.outputs }} | ||
# | ||
#runs: | ||
# using: "composite" | ||
# steps: | ||
# - name: Install .NET Core 6 | ||
# uses: actions/setup-dotnet@v1 | ||
# with: | ||
# dotnet-version: '6.0.x' | ||
# | ||
# - name: Install GitVersion | ||
# uses: gittools/actions/gitversion/[email protected] | ||
# with: | ||
# versionSpec: '5.10.3' | ||
# | ||
# - name: GitVersion Config | ||
# uses: gittools/actions/gitversion/[email protected] | ||
# with: | ||
# useConfigFile: true | ||
# additionalArguments: '/showConfig' | ||
# | ||
# - name: Determine Version | ||
# uses: gittools/actions/gitversion/[email protected] | ||
# id: gitversion | ||
# with: | ||
# useConfigFile: true |
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 |
---|---|---|
@@ -1,106 +1,106 @@ | ||
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 | ||
#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: lemonade-hq-ruby-debug-ide-${{ steps.calculate_version.outputs.semver }}.gem | ||
# path: lemonade-hq-ruby-debug-ide-${{ steps.calculate_version.outputs.semver }}.gem | ||
# | ||
# |
Oops, something went wrong.