-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (55 loc) · 1.7 KB
/
main.yml
File metadata and controls
67 lines (55 loc) · 1.7 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Ruby
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}/Rails ${{ matrix.rails }}
strategy:
matrix:
ruby: ['3.2', '3.3', '3.4', '4.0']
rails: ['7.0', '7.1', '7.2', '8.0', '8.1']
exclude:
# Rails < 7.2 is incompat with Ruby 3.3+
- { ruby: '3.3', rails: '7.0' }
- { ruby: '3.3', rails: '7.1' }
- { ruby: '3.4', rails: '7.0' }
- { ruby: '3.4', rails: '7.1' }
- { ruby: '4.0', rails: '7.0' }
- { ruby: '4.0', rails: '7.1' }
fail-fast: false # applies to matrix
continue-on-error: true # applies to job
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails-${{ matrix.rails }}/Gemfile
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Start texd container
run: |
docker run --rm -d --name texd-dev \
-p 2201:2201 \
-e HOME=/tmp \
-v $(mktemp -d):/texd \
-v $(mktemp -d):/refs \
--user=$(id -u):$(id -g) \
ghcr.io/digineo/texd --reference-store dir:///refs
until curl -fs -o/dev/null http://localhost:2201/status; do sleep 2; echo waiting for texd; done
- name: Run rspec
run: bundle exec rake spec
lint:
runs-on: ubuntu-latest
name: Rubocop
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2" # minimal supported version
bundler-cache: true
- name: Run rubocop
run: bundle exec rake rubocop