From 34e26c43c9dabb2e92e47dec84cb76ac355b2983 Mon Sep 17 00:00:00 2001 From: Mat Sadler Date: Tue, 26 Dec 2023 20:34:37 +0000 Subject: [PATCH] test on Ruby 3.3 --- .github/workflows/test.yaml | 109 ++++++++++++++++++------------------ test | 2 +- 2 files changed, 57 insertions(+), 54 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 4d7fe58f..6d65e6b2 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,65 +1,68 @@ name: Test on: - - push - - pull_request + - push + - pull_request jobs: - test: - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: - - ubuntu-latest - - macos-latest - - windows-latest - ruby-version: - - "2.7" - - "3.0" - - "3.1" - - "3.2" - - head - rustup-toolchain: - - "1.61" - - stable - exclude: - - os: windows-latest - ruby-version: head + test: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + - macos-latest + - windows-latest + ruby-version: + - "2.7" + - "3.0" + - "3.1" + - "3.2" + - "3.3" + - head + rustup-toolchain: + - "1.61" + - stable + exclude: + - os: windows-latest + ruby-version: "3.3" + - os: windows-latest + ruby-version: head - steps: - - uses: actions/checkout@v3 + steps: + - uses: actions/checkout@v3 - - uses: oxidize-rb/actions/setup-ruby-and-rust@v1 - with: - rustup-toolchain: ${{ matrix.rustup-toolchain }} - ruby-version: ${{ matrix.ruby-version }} - cache-version: v2 - bundler-cache: true - cargo-cache: true - cargo-cache-extra-path: | - examples/rust_blank/tmp/ - examples/complete_object/tmp/ - examples/custom_exception_ruby/tmp/ - examples/custom_exception_rust/tmp/ + - uses: oxidize-rb/actions/setup-ruby-and-rust@v1 + with: + rustup-toolchain: ${{ matrix.rustup-toolchain }} + ruby-version: ${{ matrix.ruby-version }} + cache-version: v2 + bundler-cache: true + cargo-cache: true + cargo-cache-extra-path: | + examples/rust_blank/tmp/ + examples/complete_object/tmp/ + examples/custom_exception_ruby/tmp/ + examples/custom_exception_rust/tmp/ - - name: Example gem tests (blank?) - working-directory: examples/rust_blank - run: bundle exec rake test + - name: Example gem tests (blank?) + working-directory: examples/rust_blank + run: bundle exec rake test - - name: Example gem tests (complete object) - working-directory: examples/complete_object - run: bundle exec rake test + - name: Example gem tests (complete object) + working-directory: examples/complete_object + run: bundle exec rake test - - name: Example gem tests (custom exception defined in Ruby) - if: matrix.ruby-version != 'head' - working-directory: examples/custom_exception_ruby - run: bundle exec rake test + - name: Example gem tests (custom exception defined in Ruby) + if: matrix.ruby-version != 'head' + working-directory: examples/custom_exception_ruby + run: bundle exec rake test - - name: Example gem tests (custom exception defined in Rust) - if: matrix.ruby-version != 'head' - working-directory: examples/custom_exception_rust - run: bundle exec rake test + - name: Example gem tests (custom exception defined in Rust) + if: matrix.ruby-version != 'head' + working-directory: examples/custom_exception_rust + run: bundle exec rake test - - name: Run tests - run: cargo test --workspace + - name: Run tests + run: cargo test --workspace diff --git a/test b/test index 0e578167..4fdee61b 100755 --- a/test +++ b/test @@ -1,6 +1,6 @@ #!/bin/sh -RUBY_VERSIONS="2.7.8 3.0.6 3.1.4 3.2.2" +RUBY_VERSIONS="2.7.8 3.0.6 3.1.4 3.2.2 3.3.0" ERRORS="" for VERSION in $RUBY_VERSIONS; do