.github/workflows/ruby.yml in chess-0.3.6 vs .github/workflows/ruby.yml in chess-0.4.0
- old
+ new
@@ -19,40 +19,35 @@
strategy:
matrix:
ruby-version: ['2.7', '3.0', '3.1', '3.2', '3.3']
steps:
- - uses: actions/checkout@v2
+ - name: Checkout repository
+ uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- bundler-cache: true # runs 'bundle install' and caches installed gems automatically
+ bundler-cache: true
- name: Compile extension
working-directory: ./ext/chess
run: |
ruby extconf.rb
make
- name: Run tests
run: bundle exec rake test
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- # - name: Upload coverage report to Codecov
- # uses: codecov/codecov-action@v1
- # with:
- # file: ./coverage/.resultset.json
rubocop:
runs-on: ubuntu-latest
- strategy:
- matrix:
- ruby-version: ['2.7', '3.0', '3.1', '3.2', '3.3']
steps:
- - uses: actions/checkout@v2
+ - name: Checkout repository
+ uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
- ruby-version: ${{ matrix.ruby-version }}
- bundler-cache: true # runs 'bundle install' and caches installed gems automatically
+ ruby-version: '3.3'
+ bundler-cache: true
- name: Run Rubocop
run: bundle exec rubocop