Skip to content

Commit 97fc696

Browse files
RUBY-2655 Setup build pipeline for outside contributors (#2332)
Co-authored-by: shields <shields@tablecheck.com> Co-authored-by: Dmitry Rybakov <dmitry.rybakov@mongodb.com>
1 parent fab2003 commit 97fc696

File tree

1 file changed

+74
-0
lines changed

1 file changed

+74
-0
lines changed

.github/workflows/test.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: Run Driver Tests
2+
on: [push, pull_request]
3+
jobs:
4+
build:
5+
name: "${{matrix.os}} ruby-${{matrix.ruby}} mongodb-${{matrix.mongodb}} ${{matrix.topology}}"
6+
env:
7+
CI: true
8+
TESTOPTS: "-v"
9+
runs-on: ubuntu-latest
10+
continue-on-error: true
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os: [ ubuntu-latest ]
15+
ruby: ["2.5", "2.6", "2.7", "3.0"]
16+
mongodb: ["3.6", "4.4", "5.0"]
17+
topology: [replica_set, sharded_cluster]
18+
include:
19+
- os: macos
20+
ruby: "2.6"
21+
mongodb: "5.0"
22+
topology: server
23+
- os: macos
24+
ruby: "2.7"
25+
mongodb: "5.0"
26+
topology: server
27+
- os: macos
28+
ruby: "3.0"
29+
mongodb: "5.0"
30+
topology: server
31+
- os: ubuntu-latest
32+
ruby: "2.6"
33+
mongodb: "5.0"
34+
topology: server
35+
- os: ubuntu-latest
36+
ruby: "2.7"
37+
mongodb: "5.0"
38+
topology: server
39+
- os: ubuntu-latest
40+
ruby: "3.0"
41+
mongodb: "5.0"
42+
topology: server
43+
- os: ubuntu-18.04
44+
ruby: "2.5"
45+
mongodb: "3.6"
46+
topology: replica_set
47+
- os: ubuntu-16.04
48+
ruby: "2.4"
49+
mongodb: "3.6"
50+
topology: replica_set
51+
steps:
52+
- name: repo checkout
53+
uses: actions/checkout@v2
54+
with:
55+
submodules: recursive
56+
- id: start-mongodb
57+
name: start mongodb
58+
uses: mongodb-labs/drivers-evergreen-tools@master
59+
with:
60+
version: "${{matrix.mongodb}}"
61+
topology: "${{matrix.topology}}"
62+
- name: load ruby
63+
uses: ruby/setup-ruby@v1
64+
with:
65+
ruby-version: "${{matrix.ruby}}"
66+
bundler: 2
67+
- name: bundle
68+
run: bundle install --jobs 4 --retry 3
69+
- name: test
70+
timeout-minutes: 60
71+
continue-on-error: true
72+
run: bundle exec rake spec:ci
73+
env:
74+
MONGODB_URI: ${{ steps.start-mongodb.outputs.cluster-uri }}

0 commit comments

Comments
 (0)