-
Notifications
You must be signed in to change notification settings - Fork 124
66 lines (66 loc) · 1.86 KB
/
build.yml
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
name: build
on:
push:
branches: [master]
jobs:
jruby-gem-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: ruby/setup-ruby@v1
with:
ruby-version: jruby-9.1.17
bundler-cache: true
- uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
- uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Run gem release
run: |
echo -e "---\n:rubygems_api_key: ${{ secrets.RUBYGEMS_API_KEY }}" > ~/.gem/credentials
chmod 0600 ~/.gem/credentials
bundle exec rake gem:release
rubygems-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.3
bundler-cache: true
- name: Run gem release
run: |
echo -e "---\n:rubygems_api_key: ${{ secrets.RUBYGEMS_API_KEY }}" > ~/.gem/credentials
chmod 0600 ~/.gem/credentials
bundle exec rake gem:release
gem-smoke-test:
runs-on: ubuntu-latest
needs: [jruby-gem-release, rubygems-release]
strategy:
matrix:
ruby-version: [2.3, jruby-9.1.17]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- uses: actions/setup-java@v2
if: ${{ matrix.ruby-version == 'jruby-9.1.17' }}
with:
java-version: '8'
distribution: 'adopt'
- run: |
gem install gooddata
ruby -e "require 'gooddata';GoodData.version"