-
Notifications
You must be signed in to change notification settings - Fork 123
53 lines (53 loc) · 1.44 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
name: build
on:
push:
branches: [master]
jobs:
jruby-gem-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: jruby-9.4.1
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: bundle exec rake gem:release
env:
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
rubygems-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.1
bundler-cache: true
- name: Run gem release
run: bundle exec rake gem:release
env:
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
gem-smoke-test:
runs-on: ubuntu-latest
needs: [jruby-gem-release, rubygems-release]
strategy:
matrix:
ruby-version: [3.2.1, jruby-9.4.1]
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- run: |
gem install gooddata
ruby -e "require 'gooddata';GoodData.version"