Skip to content

Commit 9bd01f3

Browse files
committed
Update github action.
1 parent 20b143e commit 9bd01f3

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

.github/workflows/sdkbuild2run.yml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,30 @@ name: Aspose Cells Cloud SDK for Ruby
22

33
on:
44
push:
5-
branches: [ "master" ]
5+
branches: [ main, master ]
66
pull_request:
7-
branches: [ "master" ]
7+
branches: [ main, master ]
88

99
jobs:
10-
test:
11-
10+
build-and-test:
1211
runs-on: ubuntu-latest
1312
strategy:
1413
matrix:
15-
ruby-version: ['2.6', '2.7', '3.0']
14+
ruby-version: ["3.0", "3.1", "3.2"]
1615

1716
steps:
18-
- uses: actions/checkout@v4
19-
- name: Set up Ruby
20-
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
21-
# change this to (see https://github.com/ruby/setup-ruby#versioning):
22-
# uses: ruby/setup-ruby@v1
23-
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
17+
- name: Checkout Code
18+
uses: actions/checkout@v4
19+
20+
- name: Setup Ruby
21+
uses: ruby/setup-ruby@v1
2422
with:
25-
ruby-version: 3/0
26-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
27-
- name: Build Aspose Cells Cloud SDK Library
28-
run: gem build aspose_cells_cloud.gemspec
23+
ruby-version: ${{ matrix.ruby-version }}
24+
bundler-cache: true
25+
26+
- name: Install Dependencies
27+
run: |
28+
gem install bundler
29+
bundle install
30+
gem build aspose_cells_cloud.gemspec
31+

0 commit comments

Comments
 (0)