-
Notifications
You must be signed in to change notification settings - Fork 16
36 lines (32 loc) · 1.03 KB
/
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
name: Unit Tests
on: [pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version:
- "3.0"
- "2.7"
steps:
- uses: actions/checkout@v2
- name: Set up Ruby ${{ matrix.ruby-version }}
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
# uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Remove vscode gems
run: bundle config set --local without vscode
- name: Install dependencies
run: bundle install
- name: Enable file transport in git
run: git config --global protocol.file.allow always
- name: Run tests
run: bundle exec rake test
env:
GIT_AUTHOR_NAME: autobuild CI Git Identity
GIT_AUTHOR_EMAIL: [email protected]
GIT_COMMITTER_NAME: autobuild CI Git Identity
GIT_COMMITTER_EMAIL: [email protected]