-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (35 loc) · 997 Bytes
/
tests.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
45
46
name: Tests
on: [push]
jobs:
minitest:
strategy:
matrix:
ruby-version: ['3.2', '3.1', '3.0', '2.7']
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby-version }}
- name: Run all tests
run: |
cp .env.example .env
bin/rake test
- name: Code Climate Coverage Action
uses: paambaati/codeclimate-action@v5.0.0
env:
CC_TEST_REPORTER_ID: b358904aab0061aa522f50917cb78091c0fab23ab0b72bbbee3f854c00d7435c
linters:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Run all style checks
run: bin/rubocop --parallel