forked from bigbluebutton/bbb-events
-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (30 loc) · 853 Bytes
/
ci.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
env:
RUBY_VERSION: 2.7.2
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
name: CI
on: [push, pull_request]
jobs:
test:
name: Rake Test
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Ruby ${{ env.RUBY_VERSION }}
uses: actions/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY_VERSION }}
- name: Bundle cache
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Bundle install
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Run Rake Test
run: |
bundler exec rake