-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (49 loc) · 1.29 KB
/
check.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Tests
on: [push]
jobs:
security_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Salus Scan
run: docker run --rm -t -v $(pwd):/home/repo coinbase/salus:latest
tests:
runs-on: ubuntu-latest
container:
image: ruby:2.6.6
env:
BUNDLE_JOBS: 3
BUNDLE_RETRY: 3
BUNDLE_PATH: vendor/bundle
RAILS_ENV: test
steps:
- uses: actions/checkout@v3
- name: Update Rubygems
run: |
gem update --system 3.3.22
- name: Install Bundler 1.17.3
run: |
gem install bundler -v '1.17.3'
- name: 'Debugging: List Installed Gems'
run: |
gem list
- name: Cache
id: restore-cache
uses: actions/cache@v3
with:
path: vendor/bundle
key: rails-demo-bundle-v2-${{ hashFiles('Gemfile.lock') }}
- name: Bundle Install
run: |
bundle install --jobs=3 --retry=3 --path=vendor/bundle
- name: Verify ffi Installation
run: |
bundle show ffi
- name: Which bundler?
run: |
bundle -v
- name: Rubocop
run: bundle exec rubocop --require rubocop-rspec
- name: Run rspec
run: |
bundle exec rspec spec