-
Notifications
You must be signed in to change notification settings - Fork 18
43 lines (39 loc) · 1.24 KB
/
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
38
39
40
41
42
43
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby:
- '3.0'
- '3.1'
- '3.2'
- '3.3'
name: Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: |
sudo apt-get install libsqlite3-dev
gem install bundler
bundle install --jobs 4 --retry 3
- name: Run RuboCop
run: bundle exec rubocop
- name: Run notification-handler specs
run: bundle exec rspec notification-handler
- name: Run notification-pusher specs
run: bundle exec rspec notification-pusher
- name: Run notification-pusher-actionmailer specs
run: bundle exec rspec notification-pusher/notification-pusher-actionmailer
- name: Run notification-pusher-onesignal specs
run: bundle exec rspec notification-pusher/notification-pusher-onesignal
- name: Run notification-renderer specs
run: bundle exec rspec notification-renderer
- name: Run notification-settings specs
run: bundle exec rspec notification-settings
- name: Run integration tests
run: bundle exec rspec