-
Notifications
You must be signed in to change notification settings - Fork 9
39 lines (34 loc) · 928 Bytes
/
test.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
name: Development
on: [push]
jobs:
test:
strategy:
matrix:
os:
- ubuntu
ruby:
- 2.6
- 2.7
runs-on: ${{matrix.os}}-latest
steps:
- uses: actions/checkout@v1
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby}}
- uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{runner.os}}-${{matrix.ruby}}-${{hashFiles('**/Gemfile.lock')}}
restore-keys: |
${{runner.os}}-${{matrix.ruby}}-
- name: Bundle install
run: |
sudo apt-get install pkg-config
gem install bundler:2.1.4
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Run tests
run: |
git config --global user.email "[email protected]"
git config --global user.name "Samuel Williams"
bundle exec bake test