Skip to content

Commit

Permalink
ci splits by rust 1.73 and rust stable
Browse files Browse the repository at this point in the history
  • Loading branch information
simonneutert committed Dec 2, 2023
1 parent 51d7999 commit d78b05b
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
43 changes: 43 additions & 0 deletions .github/workflows/ruby-main-rust-stable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# 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 Main

on:
push:
branches: [main]

jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, macos-latest-xlarge]
ruby-version: ["3.2"]
rust-version: ["stable"]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: moonrepo/setup-rust@v1
with:
channel: ${{ matrix.rust-version }}
- 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
- name: Run tests
run: bundle exec rubocop && bundle exec rake
env:
RACK_ENV: test
2 changes: 1 addition & 1 deletion .github/workflows/ruby-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, macos-latest-xlarge]
ruby-version: ["3.2"]
rust-version: ["1.73.0", "stable"]
rust-version: ["1.73.0"]

runs-on: ${{ matrix.os }}

Expand Down

0 comments on commit d78b05b

Please sign in to comment.