-
Notifications
You must be signed in to change notification settings - Fork 23
44 lines (44 loc) · 1.09 KB
/
actions.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: repo-checks
on:
push:
branches: [master]
pull_request:
jobs:
main:
name: test
runs-on: ubuntu-latest
env:
RAILS_ENV: test
BUNDLE_GEMFILE: gems.rb
strategy:
fail-fast: false
matrix:
ruby:
- "2.7"
- "3.0"
- "3.1"
- "3.2"
- "3.3"
- jruby-9.4
- jruby-head
steps:
- uses: zendesk/checkout@v2
- uses: zendesk/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: gem_cache
id: cache
uses: zendesk/cache@v2
with:
path: vendor/bundle
key: cache-${{ runner.os }}-ruby-${{ matrix.ruby }}-${{ hashFiles('Gemfile.lock') }}
- name: install
run: |
bundle config path vendor/bundle
bundle install --without benchmark development
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
- name: rake ${{ matrix.ruby }}
run: |
bundle exec rake