Skip to content

Commit

Permalink
Merge pull request #75 from fallwith/main
Browse files Browse the repository at this point in the history
Ruby workflow enhancements
  • Loading branch information
elaguerta-nr authored Jun 3, 2024
2 parents 294983c + df39fd3 commit b12b334
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/fossa-ruby-bundler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,22 @@ jobs:
FOSSA_ANALYZE_RESULT: ""

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
ruby-version: '3.3'
- name: Ensure that a Gemfile.lock file exists for each Gemfile file
run: |
echo "Ensuring that Gemfile.lock files exist..."
for gemfile in $(find . -name Gemfile -not -path './test/**' -not -path './spec/**'); do
dir=${gemfile%/*}
echo "Found Gemfile at $dir"
if [[ -e "$dir/Gemfile.lock" ]]; then
echo "Found Gemfile.lock at $dir"
else
echo "No Gemfile.lock found at $dir - generating one..."
bundle lock --gemfile "$dir/Gemfile"
fi
done
- id: fossa-cli
uses: newrelic/.github/.github/composite/fossa-composite@main

0 comments on commit b12b334

Please sign in to comment.