forked from ruby-debug/ruby-debug-ide
-
Notifications
You must be signed in to change notification settings - Fork 1
106 lines (81 loc) · 2.57 KB
/
ci.yml
File metadata and controls
106 lines (81 loc) · 2.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
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