-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 996 Bytes
/
rails-main.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
name: Rails Pre-Release
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}/Rails ${{ matrix.rails }}
strategy:
matrix:
ruby: ['3.2', '3.3']
rails: ['8.0', 'main']
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