-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (46 loc) · 1.1 KB
/
dynamic.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
name: Runtime tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
syntax:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby 3.1
uses: actions/setup-ruby@v1
with:
ruby-version: 3.1.x
- name: Loading all files should not crash
run: |
gem install bundler
bundle install --jobs 4 --retry 3
./scripts/require_all.sh
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby 3.1
uses: actions/setup-ruby@v1
with:
ruby-version: 3.1.x
- name: Run rspec tests
run: |
gem install bundler
bundle install --jobs 4 --retry 3
bundle exec rspec
hooks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby 3.1
uses: actions/setup-ruby@v1
with:
ruby-version: 3.1.x
- name: Check all hooks for crashes and documentation
run: |
gem install bundler
bundle install --jobs 4 --retry 3
./scripts/hooks.sh