forked from devise-security/devise-security
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (47 loc) · 1.44 KB
/
test_suite.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
50
name: Test Suite
on: [push]
jobs:
run-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
orm: [active_record, mongoid]
rails: ["7.0", "7.1", "7.2"]
ruby: ["3.1", "3.2", "3.3", head]
env:
BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.rails }}.gemfile
DEVISE_ORM: ${{ matrix.orm }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Start MongoDB
uses: superchargejs/[email protected]
if: ${{ matrix.orm == 'mongoid' }}
- name:
Tests for ORM ${{ matrix.orm }}, Rails ${{ matrix.rails }}, and Ruby
${{ matrix.ruby }}
run: |
bundle exec rake
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name:
run-orm-${{ matrix.orm }}-rails-${{ matrix.rails }}-ruby-${{
matrix.ruby }}
parallel: true
path-to-lcov: ./coverage/lcov/devise-security.lcov
finish:
needs: run-tests
runs-on: ubuntu-latest
steps:
- name: Upload coverage to Coveralls
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
file: ./coverage/lcov/devise-security.lcov