Merge pull request #11 from useblacksmith/bump-cache-version-3.2.213-… #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ruby Setup and Version Check | |
on: | |
push: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: blacksmith-staging | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: useblacksmith/setup-ruby@v2 | |
with: | |
ruby-version: 3.3.4 | |
- name: Verify Ruby version | |
run: | | |
installed_version=$(ruby -v | cut -d' ' -f2) | |
if [ "$installed_version" = "3.3.4" ]; then | |
echo "Ruby version is correct: $installed_version" | |
else | |
echo "Ruby version is incorrect. Expected 3.3.4, but got $installed_version" | |
exit 1 | |
fi |