diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2e3da69..abed0ea 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,18 +27,16 @@ jobs: - "ruby-3.2" - "ruby-3.3" - "ruby-3.4" + - "ruby-4.0" - "jruby" - "truffleruby" steps: - - uses: actions/checkout@v2 - - name: Cache gems - uses: actions/cache@v2 + - name: load ruby + uses: ruby/setup-ruby@v1 with: - path: vendor/bundle - key: ${{ runner.os }}-gems-${{ matrix.ruby }}-${{ hashFiles('**/Gemfile.lock') }} - restore-keys: | - ${{ runner.os }}-gems- + ruby-version: ${{ matrix.ruby }} + bundler-cache: true - name: Run tests uses: adambirds/docker-compose-action@v1.5.0 with: diff --git a/spec/support/specs.sh b/spec/support/specs.sh index 80bc830..b8d1ce8 100755 --- a/spec/support/specs.sh +++ b/spec/support/specs.sh @@ -44,7 +44,7 @@ EOT export OPENSSL_CONF=/home/openssl_legacy.cnf -if [[ ${RUBY_VERSION:0:1} = "3" ]]; then +if [[ ${RUBY_VERSION:0:1} = "4" ]]; then export RUBYOPT='-rbundler/setup -rrbs/test/setup' export RBS_TEST_RAISE=true export RBS_TEST_LOGLEVEL=error