chore(deps): update actions/checkout action to v5 (#199) #343
This file contains hidden or 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
| on: [push] | |
| name: Prekin | |
| jobs: | |
| prekin_github_actions: | |
| name: Prekin CI | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ruby:3.4.5 | |
| env: | |
| BUNDLE_PATH: vendor/bundle | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install the latest version's Bundler | |
| run: | | |
| gem install bundler --no-document | |
| - name: Restore caches of RubyGems | |
| uses: actions/cache@v4 | |
| id: rubygems-cache | |
| with: | |
| path: vendor/bundle | |
| key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gem- | |
| - name: $ bundle install を行う | |
| run: | | |
| bundle config set deployment 'true' | |
| bundle install --jobs 4 --retry 3 | |
| - name: Execute RSpec | |
| if: always() | |
| run: | | |
| bundle exec rspec | |
| env: | |
| POSTGRES_HOST: postgres | |
| RAILS_ENV: test | |
| - name: Execute RuboCop | |
| if: always() | |
| run: | | |
| bundle exec rubocop -D -E -S -P |