-
Notifications
You must be signed in to change notification settings - Fork 122
72 lines (71 loc) · 1.99 KB
/
aggregate_root.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
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
68
69
70
71
72
name: aggregate_root
on:
repository_dispatch:
types:
- script
workflow_dispatch:
push:
paths-ignore:
- "railseventstore.org/**"
- "contrib/**"
- "support/bundler/**"
- "support/ci/**"
pull_request:
types: [opened, reopened]
paths-ignore:
- "railseventstore.org/**"
- "contrib/**"
- "support/bundler/**"
- "support/ci/**"
jobs:
test:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: aggregate_root
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
strategy:
fail-fast: false
matrix:
include:
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
- ruby_version: ruby-3.1
bundle_gemfile: Gemfile
- ruby_version: ruby-3.0
bundle_gemfile: Gemfile
- ruby_version: ruby-2.7
bundle_gemfile: Gemfile
- ruby_version: truffleruby
bundle_gemfile: Gemfile
steps:
- uses: actions/checkout@v3
- run: test -e ${{ matrix.bundle_gemfile }}.lock
working-directory: ${{ env.WORKING_DIRECTORY }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true
working-directory: ${{ env.WORKING_DIRECTORY }}
- run: make test
working-directory: ${{ env.WORKING_DIRECTORY }}
mutate:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: aggregate_root
BUNDLE_GEMFILE: Gemfile
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: test -e ${{ env.BUNDLE_GEMFILE }}.lock
working-directory: ${{ env.WORKING_DIRECTORY }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: ruby-3.1
bundler-cache: true
working-directory: ${{ env.WORKING_DIRECTORY }}
- run: make mutate-changes
working-directory: ${{ env.WORKING_DIRECTORY }}