-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (48 loc) · 1.16 KB
/
test_on_push.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
52
name: Test on Push
on:
push:
branches:
- develop
- feature/*
jobs:
test:
runs-on: macos-latest
strategy:
matrix:
os: [ macos-latest ]
xcode: ['/Applications/Xcode_11.4.app/Contents/Developer']
ruby: [ '2.6' ]
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- name: Cache Gems
uses: actions/cache@v1
with:
path: vendor/bundle
key: bundle-use-ruby-${{ matrix.os }}-${{ matrix.ruby }}-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
bundle-use-ruby-${{ matrix.os }}-${{ matrix.ruby }}-
- name: Setup
run: |
make setup
- name: Run Linter
run: |
make lint
- uses: actions/upload-artifact@v2
name: Upload Lint Report
with:
name: lint_reports
path: lint_reports/
- name: Run Tests
run: |
make test
- name: Create Coverage Report
run: |
make coverage
- uses: actions/upload-artifact@v2
name: Upload Test and Coverage Reports
with:
name: test_reports
path: test_reports/