-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 968 Bytes
/
main.yaml
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
name: Test and Lint
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: [ '3.0', '2.7', 'head' ]
steps:
- uses: actions/checkout@v2
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@477b21f02be01bcb8030d50f37cfec92bfa615b6
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Install dependencies
run: bundle install
shell: bash
- name: Rubocop Linting
run: bundle exec rubocop
shell: bash
- name: Latex Install
run: sudo apt-get install texlive-luatex && sudo apt-get install texlive
shell: bash
- name: Run tests
run: bundle exec rake
shell: bash
- name: Upload Test Coverage
uses: codecov/codecov-action@v3
with:
directory: ./coverage