-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 1.01 KB
/
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
39
40
name: Test and Lint
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: [ '3.2', '2.7' ]
steps:
- uses: actions/checkout@v3
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@5daca165445f0ae10478593083f72ca2625e241d
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
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true