-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (39 loc) · 1.12 KB
/
test.yml
File metadata and controls
49 lines (39 loc) · 1.12 KB
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
name: test
on:
push:
branches: [ main, v* ]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
repository: interscript/interscript
- name: Run bootstrap script
run: ruby bootstrap.rb
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: Cache Ruby gems
uses: actions/cache@v2
env:
cache-name: cache-ruby-modules
with:
path: vendor/bundle
key: ${{ runner.os }}-ruby-2.7-gems-${{ hashFiles('**/interscript.gemspec') }}
restore-keys: |
${{ runner.os }}-ruby-2.7-gems-
- name: Configure bundle to use vendor mode
run: bundle config path vendor/bundle
- name: Install bundle and Python dependencies
working-directory: ./ruby
run: |
pip install regex
bundle install --jobs 4 --retry 3 --with jsexec --without secryst
- name: Execute tests
working-directory: ./ruby
run: |
bundle exec rspec spec/interscript_spec.rb spec/map_name_and_metadata_spec.rb