-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 1.01 KB
/
config.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
on: [push]
name: Prekin
jobs:
prekin_github_actions:
name: Prekin CI
runs-on: ubuntu-latest
container:
image: ruby:3.3.0
env:
BUNDLE_PATH: vendor/bundle
steps:
- uses: actions/checkout@v4
- name: Install the latest version's Bundler
run: |
gem install bundler --no-document
- name: Restore caches of RubyGems
uses: actions/cache@v3
id: rubygems-cache
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
- name: $ bundle install を行う
run: |
bundle config set deployment 'true'
bundle install --jobs 4 --retry 3
- name: Execute RSpec
if: always()
run: |
bundle exec rspec
env:
POSTGRES_HOST: postgres
RAILS_ENV: test
- name: Execute RuboCop
if: always()
run: |
bundle exec rubocop -D -E -S -P