Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@2489e28c66b1217a91b825746a221cfd04965f67
with:
ruby-version: 2.6
ruby-version: 4.0.5

- run: bundle install

Check warning on line 32 in .github/workflows/build.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Dependency versions are not predictable. Use a lock-file enforcing command instead.

See more on https://sonarcloud.io/project/issues?id=mydatamyconsent_ruby-sdk&issues=AZ4ZS71ZREQgRgn7shL7&open=AZ4ZS71ZREQgRgn7shL7&pullRequest=29

- name: Rubocop
run: rubocop
Expand All @@ -39,12 +39,12 @@
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
gem build *.gemspec

Check warning on line 42 in .github/workflows/build.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Prefix files and paths with "./" or "--" when using glob.

See more on https://sonarcloud.io/project/issues?id=mydatamyconsent_ruby-sdk&issues=AZ4ZS71ZREQgRgn7shL8&open=AZ4ZS71ZREQgRgn7shL8&pullRequest=29

- name: Publish to GPR
run: |
printf -- "---\n:github: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem

Check warning on line 47 in .github/workflows/build.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Prefix files and paths with "./" or "--" when using glob.

See more on https://sonarcloud.io/project/issues?id=mydatamyconsent_ruby-sdk&issues=AZ4ZS71ZREQgRgn7shL9&open=AZ4ZS71ZREQgRgn7shL9&pullRequest=29
env:
GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
OWNER: ${{ github.repository_owner }}
Expand All @@ -52,6 +52,6 @@
- name: Publish to RubyGems
run: |
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
gem build *.gemspec

Check warning on line 55 in .github/workflows/build.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Prefix files and paths with "./" or "--" when using glob.

See more on https://sonarcloud.io/project/issues?id=mydatamyconsent_ruby-sdk&issues=AZ4ZS71ZREQgRgn7shL-&open=AZ4ZS71ZREQgRgn7shL-&pullRequest=29
gem push *.gem

Check warning on line 56 in .github/workflows/build.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Prefix files and paths with "./" or "--" when using glob.

See more on https://sonarcloud.io/project/issues?id=mydatamyconsent_ruby-sdk&issues=AZ4ZS71ZREQgRgn7shL_&open=AZ4ZS71ZREQgRgn7shL_&pullRequest=29
env:
Expand Down
Loading