Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
RUBY_TEST_VERSION: '3.4'

jobs:
lint:
Expand Down Expand Up @@ -90,6 +91,28 @@ jobs:
- name: Run yamllint
run: make lint-yaml

test-gemfile-ruby:
name: Gemfile Ruby Tests (${{ matrix.ruby }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
ruby: ['3.3', '3.4', '4.0']
steps:
- uses: actions/checkout@v4

- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler: none

- name: Install Minitest
run: gem install minitest --version '~> 5.25' --no-document

- name: Test the Ruby evaluator
run: ruby crates/rb-gemfile/tests/ruby/evaluator_test.rb

test-rust:
name: Rust Tests
runs-on: ${{ matrix.os }}
Expand All @@ -116,6 +139,12 @@ jobs:
- name: Build
run: cargo build --verbose

- name: Install Ruby for Gemfile evaluation tests
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY_TEST_VERSION }}
bundler: none

- name: Run unit tests
run: cargo test --verbose

Expand Down Expand Up @@ -342,6 +371,12 @@ jobs:
- name: Install cargo-llvm-cov
run: cargo install --force cargo-llvm-cov

- name: Install Ruby for Gemfile evaluation tests
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY_TEST_VERSION }}
bundler: none

- name: Generate coverage report
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info

Expand Down
117 changes: 117 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/rb-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ path = "src/bin/rb.rs"
clap = { version = "4.0", features = ["derive", "color", "help", "usage", "env"] }
clap_complete = "4.0"
rb-core = { path = "../rb-core" }
rb-gemfile = { path = "../rb-gemfile" }
rb-progress = { path = "../rb-progress" }
home = "0.5"
colored = "2.0"
Expand Down
Loading
Loading