-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 999 Bytes
/
Copy pathmain.yml
File metadata and controls
42 lines (36 loc) · 999 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Ruby
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
# fluence-ci-tools lives on GitHub Packages — bundle install needs to read it.
packages: read
env:
# Authenticate Bundler against the fluence-eu GitHub Packages registry.
BUNDLE_RUBYGEMS__PKG__GITHUB__COM: x-access-token:${{ secrets.GITHUB_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
strategy:
fail-fast: false
matrix:
# Latest stable Rails across supported Ruby versions, using the root
# Gemfile (no Rails pin, so bundler resolves the most recent release).
ruby:
- '4.0'
- '3.4'
- '3.3'
- '3.2'
steps:
- uses: actions/checkout@v7
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run specs
run: SKIP_COVERAGE=true bundle exec rake spec