-
Notifications
You must be signed in to change notification settings - Fork 9
52 lines (45 loc) · 1.22 KB
/
ci.yml
File metadata and controls
52 lines (45 loc) · 1.22 KB
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
51
52
name: Continuous Integration
on:
pull_request:
push:
branches:
- main
- "releases/*"
permissions:
contents: read
jobs:
build-lint-test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
# Earliest and latest supported
rubyVersion: ["3.3", "4.0"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Setup Ruby
uses: ruby/setup-ruby@ba696adf55506673e48342a66e30f1f53cadeae0 # v1
with:
ruby-version: ${{ matrix.rubyVersion }}
- name: Install bundle
run: |
bundle config set path /tmp/bundle-dir
bundle install
- name: Lint and test
run: bundle exec rake TESTOPTS="--verbose"
- name: Type check Sorbet sample
working-directory: sorbet_generic
run: |
bundle install
bundle exec srb tc
- name: Lint and test Rails app
working-directory: rails_app
env:
NO_EAGER_TEMPORAL_CLIENT: 1
run: |
bundle install
bin/rails db:migrate
bin/rails db:seed
bundle exec rake