forked from projectblacklight/arclight
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.07 KB
/
ruby.yml
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
43
44
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
rails_version: [7.0.4]
ruby: ['3.0', '3.1', '3.2']
env:
RAILS_VERSION: ${{ matrix.rails_version }}
steps:
- uses: actions/checkout@v3
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
bundler: latest
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies with Rails ${{ matrix.rails_version }}
run: bundle install
- name: Run tests
run: bundle exec rake ci
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Ruby and gems
uses: ruby/setup-ruby@v1
with:
bundler: latest
ruby-version: 3.2
- name: Install dependencies with Bundler
run: bundle install
- name: Install dependencies with yarn
run: yarn install
- name: Lint Ruby files
run: bundle exec rake rubocop eslint