dockered test setup and dependency bump #357
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
# GitHub recommends pinning actions to a commit SHA. | |
# To get a newer version, you will need to update the SHA. | |
# You can also reference a tag or branch, but the action may change without warning. | |
name: Ruby | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
ruby-version: ["3.3"] | |
rust-version: ["1.76.0"] | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: moonrepo/setup-rust@v1 | |
with: | |
channel: ${{ matrix.rust-version }} | |
- uses: actions/setup-node@v4 | |
with: | |
# Version Spec of the version to use in SemVer notation. | |
# It also admits such aliases as lts/*, latest, nightly and canary builds | |
# Examples: 12.x, 10.15.1, >=10.15.0, lts/Hydrogen, 16-nightly, latest, node | |
node-version: '22.x' | |
- name: Set up Ruby ${{ matrix.ruby-version }} | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
ruby-version: ${{ matrix.ruby-version }} | |
- name: Install dependencies | |
run: | | |
bundle config path vendor/bundle | |
bundle install --jobs 4 --retry 3 | |
npm install -g prettier | |
- name: Run tests | |
run: bundle exec rubocop && bundle exec rake | |
env: | |
RACK_ENV: test |