-
-
Notifications
You must be signed in to change notification settings - Fork 25
39 lines (32 loc) · 794 Bytes
/
build.yml
File metadata and controls
39 lines (32 loc) · 794 Bytes
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: Build
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Ruby 2.6
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- name: Install
run: |
gem install bundler -v 2.0.2 --no-document
bundle install -j $(nproc)
- name: Lint
run: bundle exec rake rubocop
- name: Test
run: bundle exec rake test_with_coverage
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
CI: "true"
CI_NAME: github-ci
CI_PULL_REQUEST: ${{ github.event.number }}
CONTEXT: ${{ toJson(github) }}