Skip to content

Commit 48a123e

Browse files
committed
Merge branch 'develop' into degroff/ENG-1/issue1
# Conflicts: # fusionauth-ruby-client.iml
2 parents aaad0c5 + f5ce104 commit 48a123e

19 files changed

Lines changed: 542 additions & 143 deletions

.github/workflows/deploy.yaml

Lines changed: 35 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
# Run locally with act:
2-
#
3-
# act pull_request [--input command=[command]] \
4-
# --platform fusionauth-standard=[ecr-repo-name]/fusionauth-standard:latest] \
5-
# --workflows ./.github/workflows/deploy.yaml \
6-
# --env-file <(aws configure export-credentials --profile [aws-profile] --format env)
7-
1+
---
82
name: Deploy
93

104
on:
@@ -26,39 +20,57 @@ on:
2620

2721
permissions:
2822
contents: read
23+
id-token: write
2924

3025
jobs:
31-
build:
32-
if: |
33-
github.event_name == 'pull_request' ||
34-
github.event_name == 'push' ||
35-
github.event_name == 'workflow_dispatch' && inputs.command == 'build'
36-
runs-on: fusionauth-standard
26+
deploy:
27+
runs-on: ubuntu-latest
28+
defaults:
29+
run:
30+
shell: /usr/bin/bash -l -e -o pipefail {0}
3731
steps:
3832
- name: checkout
3933
uses: actions/checkout@v4
4034

35+
- name: setup java
36+
uses: actions/setup-java@v4
37+
with:
38+
distribution: temurin
39+
java-version: 21
40+
java-package: jre
41+
42+
- name: install savant
43+
run: |
44+
curl -O https://repository.savantbuild.org/org/savantbuild/savant-core/2.0.0/savant-2.0.0.tar.gz
45+
tar xzvf savant-2.0.0.tar.gz
46+
savant-2.0.0/bin/sb --version
47+
SAVANT_PATH=$(realpath -s "./savant-2.0.0/bin")
48+
echo "${SAVANT_PATH}" >> $GITHUB_PATH
49+
mkdir -p ~/.savant/plugins
50+
cat << EOF > ~/.savant/plugins/org.savantbuild.plugin.java.properties
51+
21=${JAVA_HOME}
52+
EOF
53+
54+
# Installs the version specified in the .ruby-version file in the repo root.
55+
- name: install ruby
56+
uses: ruby/setup-ruby@v1
57+
4158
- name: compile
4259
shell: bash -l {0}
4360
run: sb compile
4461

45-
deploy:
46-
if: |
47-
github.event_name == 'workflow_dispatch' &&
48-
(inputs.command == 'release' || inputs.command == 'publish')
49-
runs-on: fusionauth-standard
50-
steps:
51-
- name: checkout
52-
uses: actions/checkout@v4
62+
### Everything below this line will only run on a workflow_dispatch
5363

5464
- name: set aws credentials
65+
if: inputs.command == 'release' || inputs.command == 'publish'
5566
uses: aws-actions/configure-aws-credentials@v4
5667
with:
57-
role-to-assume: arn:aws:iam::752443094709:role/github-actions
68+
role-to-assume: arn:aws:iam::752443094709:role/gha-fusionauth-ruby-client
5869
role-session-name: aws-auth-action
5970
aws-region: us-west-2
6071

6172
- name: get secret
73+
if: inputs.command == 'release' || inputs.command == 'publish'
6274
run: |
6375
while IFS=$'\t' read -r key value; do
6476
echo "::add-mask::${value}"
@@ -71,17 +83,16 @@ jobs:
7183
jq -r 'to_entries[] | [.key, .value] | @tsv')
7284
7385
- name: set gem credentials
86+
if: inputs.command == 'release' || inputs.command == 'publish'
7487
run: |
7588
mkdir -p ~/.gem
7689
echo ":rubygems_api_key: ${{ env.API_KEY }}" > ~/.gem/credentials
7790
chmod 600 ~/.gem/credentials
7891
7992
- name: release to svn
8093
if: inputs.command == 'release'
81-
shell: bash -l {0}
8294
run: sb release
8395

8496
- name: publish to rubygems
8597
if: inputs.command == 'publish'
86-
shell: bash -l {0}
8798
run: sb publish

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ name: Test Library
33
on:
44
push:
55
branches:
6+
- develop
67
- main
78
pull_request:
89
branches:
10+
- develop
911
- main
12+
workflow_dispatch:
1013

1114
permissions:
1215
contents: read

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.7.5
1+
3.4.2

Gemfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
# language governing permissions and limitations under the License.
1414

1515
source 'https://rubygems.org'
16-
ruby '2.7.5'
16+
ruby '3.4.2'
1717

18-
gem 'minitest', '~> 5.22', '>= 5.22.3'
19-
gem 'rake', '~> 13.2', '>= 13.2.1'
18+
gem 'minitest', '~> 5.25'
19+
gem 'rake', '~> 13.2'
2020
gem 'rdoc-markdown', '~> 0.4.2'
2121

2222
# Specify your gem's dependencies in fusionauth_client.gemspec

Gemfile.lock

Lines changed: 34 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,39 @@
11
PATH
22
remote: .
33
specs:
4-
fusionauth_client (1.56.0)
4+
fusionauth_client (1.58.0)
55

66
GEM
77
remote: https://rubygems.org/
88
specs:
9-
cgi (0.4.1)
9+
cgi (0.4.2)
10+
date (3.4.1)
1011
erb (2.2.3)
1112
cgi
1213
extralite-bundle (1.27)
13-
minitest (5.22.3)
14-
nokogiri (1.15.6-aarch64-linux)
14+
minitest (5.25.5)
15+
nokogiri (1.18.6-aarch64-linux-gnu)
1516
racc (~> 1.4)
16-
nokogiri (1.15.6-arm64-darwin)
17+
nokogiri (1.18.6-aarch64-linux-musl)
1718
racc (~> 1.4)
18-
nokogiri (1.15.6-x86_64-linux)
19+
nokogiri (1.18.6-arm-linux-gnu)
1920
racc (~> 1.4)
20-
psych (5.1.2)
21+
nokogiri (1.18.6-arm-linux-musl)
22+
racc (~> 1.4)
23+
nokogiri (1.18.6-arm64-darwin)
24+
racc (~> 1.4)
25+
nokogiri (1.18.6-x86_64-darwin)
26+
racc (~> 1.4)
27+
nokogiri (1.18.6-x86_64-linux-gnu)
28+
racc (~> 1.4)
29+
nokogiri (1.18.6-x86_64-linux-musl)
30+
racc (~> 1.4)
31+
psych (5.2.3)
32+
date
2133
stringio
22-
racc (1.7.3)
34+
racc (1.8.1)
2335
rake (13.2.1)
24-
rdoc (6.6.3.1)
36+
rdoc (6.13.0)
2537
psych (>= 4.0.0)
2638
rdoc-markdown (0.4.2)
2739
erb (~> 2.0)
@@ -31,22 +43,27 @@ GEM
3143
unindent (~> 1.0)
3244
reverse_markdown (2.1.1)
3345
nokogiri
34-
stringio (3.1.0)
46+
stringio (3.1.6)
3547
unindent (1.0)
3648

3749
PLATFORMS
38-
aarch64-linux
39-
arm64-darwin-23
40-
x86_64-linux
50+
aarch64-linux-gnu
51+
aarch64-linux-musl
52+
arm-linux-gnu
53+
arm-linux-musl
54+
arm64-darwin
55+
x86_64-darwin
56+
x86_64-linux-gnu
57+
x86_64-linux-musl
4158

4259
DEPENDENCIES
4360
fusionauth_client!
44-
minitest (~> 5.22, >= 5.22.3)
45-
rake (~> 13.2, >= 13.2.1)
61+
minitest (~> 5.25)
62+
rake (~> 13.2)
4663
rdoc-markdown (~> 0.4.2)
4764

4865
RUBY VERSION
49-
ruby 2.7.5p203
66+
ruby 3.4.2p28
5067

5168
BUNDLED WITH
52-
2.4.22
69+
2.6.2

Rakefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
require "bundler/gem_tasks"
2-
require "rake/testtask"
2+
require "minitest/test_task"
33

4-
Rake::TestTask.new(:test) do |t|
4+
Minitest::TestTask.create(:test) do |t|
55
t.libs << "test"
66
t.libs << "lib"
7-
t.test_files = FileList['test/**/*test.rb']
7+
t.test_globs = FileList['test/**/*test.rb']
88
end
99

1010
task :default => :test

build.savant

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
pubVersion = ""
18-
project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.56.0", licenses: ["ApacheV2_0"]) {
18+
project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.58.0", licenses: ["ApacheV2_0"]) {
1919
workflow {
2020
fetch {
2121
cache()

0 commit comments

Comments
 (0)