container:
  image: ruby:2.7.2

test_task:
  bundle_cache:
    folder: /usr/local/bundle
    fingerprint_script:
      - echo $RUBY_VERSION
      - cat Gemfile.lock
    populate_script: bundle install
  install_node_script: "apt-get update && apt-get install -y --no-install-recommends nodejs" # required for ExecJS 
  test_script: bundle exec rake spec

task:
  name: Build (Alpine Linux 3.15)
  container:
    image: alpine:3.15
    cpu: 8
  environment:
    PATH: "$HOME/.cargo/bin:$PATH"
  cargo_cache:
    folder: $HOME/.cargo/registry
    fingerprint_script: cat Cargo.lock
  install_script:
    - apk --update add gcc musl-dev cargo
  test_script:
    - cargo test
  before_cache_script: rm -rf $HOME/.cargo/registry/index

Update CI to run Rust tests
Update CI to run Rust tests
