-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (64 loc) · 1.47 KB
/
CI.yaml
File metadata and controls
64 lines (64 loc) · 1.47 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: CI
permissions:
contents: read
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
schedule:
- cron: '53 4 * * TUE'
jobs:
CRuby:
uses: ./.github/workflows/cruby.yaml
lint:
name: Code quality
runs-on: ubuntu-latest
env:
BUNDLE_WITHOUT: 'development'
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Run RuboCop
run: bundle exec rubocop -f github
typing:
name: Type checking
runs-on: ubuntu-latest
env:
BUNDLE_WITHOUT: 'development'
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Install RBS collection
run: bundle exec rbs collection install
- name: Run RBS and Steep
run: bundle exec rake steep
coverage:
name: Coverage report for PR
if: ${{ github.event_name == 'pull_request' }}
needs: CRuby
runs-on: ubuntu-latest
permissions:
pull-requests: write
env:
BUNDLE_WITHOUT: 'development'
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Run RSpec
run: bundle exec rake spec
- name: Add code coverage comment
uses: romeovs/lcov-reporter-action@v0.3.1
with:
lcov-file: ./coverage/lcov/object_forge.lcov
delete-old-comments: true