forked from s3krit/changelogerator
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (39 loc) · 1.04 KB
/
check.yml
File metadata and controls
50 lines (39 loc) · 1.04 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
49
50
name: Ruby Check
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby_version: [2.7.x, head]
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@477b21f02be01bcb8030d50f37cfec92bfa615b6
with:
ruby-version: 2.7
- name: Install dependencies
run: bundle install --with=dev
- name: Lint check
run: rubocop
- name: Set up tests
if: ${{ github.event_name == 'pull_request' }}
run: echo "GITHUB_TOKEN=disabled" >> "$GITHUB_ENV"
- name: Run tests
run: bundle exec rake test
- name: Build
run: gem build changelogerator.gemspec --output=changelogerator.gem
- name: Test install
run: gem install ./changelogerator.gem
- name: Save Artifacts
uses: actions/upload-artifact@v2
with:
name: gem-${{ matrix.ruby_version }}
path: |
changelogerator.gem