-
-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (42 loc) · 1.33 KB
/
main.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
name: CI
on:
push:
pull_request:
jobs:
main:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
ruby: ["2.6", "2.7", "3.0", "3.1", "3.2"]
include:
- os: ubuntu-latest
ruby: "2.7"
coverage: true
env:
BUNDLE_WITHOUT: development
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup Ruby
uses: ./.github/actions/setup-ruby
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Setup TeX Live
uses: paolobrasolin/setup-texlive-action@main
with:
cache-key: texlive-${{ matrix.os }}
packages-path: ${{ github.workspace }}/.github/texlive.packages
profile-path: ${{ github.workspace }}/.github/texlive.profile
- name: Run tests
run: bundle exec rspec
- name: Test and publish coverage to Code Climate
uses: paambaati/[email protected]
if: ${{ matrix.coverage && github.ref == 'refs/heads/main' }}
env:
CC_TEST_REPORTER_ID: 072f27048cd818ab695de7b632d607a6275a8dbebea03fd155fa7de0362be129
with:
coverageCommand: bundle exec rspec
coverageLocations: ${{ github.workspace }}/coverage/coverage.json:simplecov