|
8 | 8 |
|
9 | 9 | jobs:
|
10 | 10 | test:
|
11 |
| - runs-on: ubuntu-18.04 |
| 11 | + runs-on: ${{ matrix.os }} |
| 12 | + timeout-minutes: 30 |
12 | 13 | strategy:
|
13 | 14 | fail-fast: false
|
14 | 15 | matrix:
|
15 |
| - os: [ubuntu, macos] |
16 |
| - ruby: [2.5, 2.6, 2.7, '3.0', 3.1, head, debug, truffleruby, truffleruby-head] |
| 16 | + os: [ubuntu-latest, macos-latest] |
| 17 | + ruby: [2.5, 2.6, 2.7, '3.0', 3.1, head, debug, truffleruby, truffleruby-head, jruby, jruby-head] |
17 | 18 | steps:
|
18 |
| - - uses: actions/checkout@v2 |
| 19 | + - uses: actions/checkout@v3 |
19 | 20 | - name: Set up Ruby
|
20 | 21 | uses: ruby/setup-ruby@v1
|
21 | 22 | with:
|
22 | 23 | ruby-version: ${{ matrix.ruby }}
|
23 | 24 | bundler-cache: true
|
24 |
| - - name: Install dependencies |
25 |
| - run: bundle install |
| 25 | + - name: Set JRUBY_OPTS environment variable |
| 26 | + run: echo "JRUBY_OPTS=--debug" >> "$GITHUB_ENV" |
| 27 | + if: ${{ startsWith(matrix.ruby, 'jruby') }} |
26 | 28 | - name: Run tests
|
27 | 29 | run: bundle exec rake
|
28 |
| - test-jruby: |
29 |
| - runs-on: ubuntu-18.04 |
30 |
| - strategy: |
31 |
| - fail-fast: false |
32 |
| - matrix: |
33 |
| - os: [ubuntu, macos] |
34 |
| - jruby: [jruby, jruby-head] |
35 |
| - steps: |
36 |
| - - uses: actions/checkout@v2 |
37 |
| - - name: Set up Ruby |
38 |
| - uses: ruby/setup-ruby@v1 |
| 30 | + - uses: actions/upload-artifact@v3 |
| 31 | + if: ${{ matrix.os == 'ubuntu-latest' && matrix.ruby == '3.0' }} |
39 | 32 | with:
|
40 |
| - ruby-version: ${{ matrix.jruby }} |
41 |
| - bundler-cache: true |
42 |
| - - name: Install dependencies |
43 |
| - env: |
44 |
| - JRUBY_OPTS: --debug |
45 |
| - run: bundle install |
46 |
| - - name: Run tests |
47 |
| - env: |
48 |
| - JRUBY_OPTS: --debug |
49 |
| - run: bundle exec rake |
| 33 | + name: coverage |
| 34 | + path: './coverage/lcov/omniauth-oauth2.lcov' |
| 35 | + retention-days: 1 |
| 36 | + |
50 | 37 | coveralls:
|
51 |
| - runs-on: ubuntu-18.04 |
| 38 | + needs: test |
| 39 | + runs-on: ubuntu-latest |
| 40 | + timeout-minutes: 30 |
52 | 41 | steps:
|
53 |
| - - uses: actions/checkout@v2 |
54 |
| - - name: Set up Ruby |
55 |
| - uses: ruby/setup-ruby@v1 |
| 42 | + - uses: actions/download-artifact@v3 |
56 | 43 | with:
|
57 |
| - ruby-version: 2.6 |
58 |
| - bundler-cache: true |
59 |
| - - name: Install dependencies |
60 |
| - run: bundle install |
61 |
| - - name: Run tests |
62 |
| - run: bundle exec rake |
| 44 | + name: coverage |
| 45 | + path: './coverage/lcov/' |
63 | 46 | - name: Coveralls GitHub Action
|
64 |
| - uses: coverallsapp/github-action@v1.1.2 |
| 47 | + uses: coverallsapp/github-action@v2 |
65 | 48 | with:
|
66 |
| - github-token: ${{ secrets.github_token }} |
67 |
| - path-to-lcov: './coverage/lcov/omniauth-oauth2.lcov' |
| 49 | + file: './coverage/lcov/omniauth-oauth2.lcov' |
0 commit comments