-
Notifications
You must be signed in to change notification settings - Fork 105
50 lines (41 loc) · 1.01 KB
/
build.yml
File metadata and controls
50 lines (41 loc) · 1.01 KB
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
47
48
49
50
name: Build
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-24.04
strategy:
matrix:
ruby-version:
- 3.2.6
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Install dependencies
run: |
bundle config set without 'development'
bundle config path vendor/bundle
bundle install --jobs=9 --retry=2 --quiet
- name: Setup test database
run: |
cp config/config.yml.sample config/config.yml
cp config/database.yml.sample config/database.yml
bin/rails db:migrate RAILS_ENV=test
- name: Rubocop
run: |
bundle exec rubocop
- name: Run RSpec
run: |
bundle exec rake spec
- name: Run Cucumber
run: |
bundle exec rake cucumber