-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (45 loc) · 1.29 KB
/
ci.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
# This workflow runs continuous CI across different versions of ruby on all branches and pull requests to develop.
name: CI
on:
push:
branches: [ '**' ]
pull_request:
branches: [ develop ]
workflow_dispatch:
jobs:
tests:
name: Ruby ${{ matrix.ruby }}
if: "contains(github.event.commits[0].message, '[ci skip]') == false"
runs-on: ubuntu-latest
env:
CI: true
VIRTUOSO_INTEGRATION_TESTS: true
ALLOW_FAILURES: ${{ endsWith(matrix.ruby, 'head') }}
strategy:
fail-fast: false
matrix:
ruby: [2.6, 2.7, '3.0', 3.1, 3.2, ruby-head, jruby]
services:
virtuoso:
image: tenforce/virtuoso
env:
DBA_PASSWORD: tester
SPARQL_UPDATE: true
ports:
- 8890:8890
- 1111:1111
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: bundle install --jobs 4 --retry 3
- name: Wait to give Virtuoso a little extra time
uses: juliangruber/sleep-action@v1
with:
time: '3s'
- name: Run tests
run: ruby --version; bundle exec rspec spec || $ALLOW_FAILURES