-
Notifications
You must be signed in to change notification settings - Fork 33
38 lines (31 loc) · 852 Bytes
/
test.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
name: Test
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- master
jobs:
docker:
timeout-minutes: 5
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.0', '3.1', '3.2', '3.3']
registry-version: ['v1', 'v2']
steps:
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Checkout
uses: actions/checkout@v1
- name: Start containers
run: docker compose -f "docker-compose.yml" up -d --build
- name: bundle install
run: bundle install
- name: Run tests
run: REGISTRY=http://localhost:5000 VERSION=${{ matrix.registry-version }} ruby ./test/test.rb
- name: Stop containers
if: always()
run: docker compose -f "docker-compose.yml" down