Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyCTHsu committed Nov 22, 2024
1 parent ea88338 commit d9b99f5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,18 @@ jobs:
include: "${{ fromJson(needs.compute_tasks.outputs.ruby-33-matrix) }}"
container:
image: ghcr.io/datadog/images-rb/engines/ruby:3.3
env:
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
steps:
- uses: actions/checkout@v4
- name: Configure Git
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- uses: actions/download-artifact@v4
with:
name: bundled-dependencies-${{ github.run_id }}-ruby-33
- run: bundle install --local
- run: bundle install && bundle exec rake compile_ext
- name: Test ${{ matrix.task }} with ${{ matrix.gemfile }}
env:
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
run: bundle install && bundle exec rake spec:${{ matrix.task }}
run: bundle exec rake spec:${{ matrix.task }}
test-ruby-32:
name: 'ruby-3.2: ${{ matrix.task }} (${{ matrix.group }})'
needs:
Expand All @@ -78,15 +78,15 @@ jobs:
include: "${{ fromJson(needs.compute_tasks.outputs.ruby-32-matrix) }}"
container:
image: ghcr.io/datadog/images-rb/engines/ruby:3.2
env:
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
steps:
- uses: actions/checkout@v4
- name: Configure Git
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- uses: actions/download-artifact@v4
with:
name: bundled-dependencies-${{ github.run_id }}-ruby-32
- run: bundle install --local
- run: bundle install && bundle exec rake compile_ext
- name: Test ${{ matrix.task }} with ${{ matrix.gemfile }}
env:
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
run: bundle install && bundle exec rake spec:${{ matrix.task }}
run: bundle exec rake spec:${{ matrix.task }}
10 changes: 6 additions & 4 deletions tasks/github.rake
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ namespace :github do
}
},
"container" => {
"image" => runtime.image
"image" => runtime.image,
"env" => {
"BUNDLE_GEMFILE" => "${{ matrix.gemfile }}"
}
},
"steps" => [
{ "uses" => "actions/checkout@v4" },
Expand All @@ -55,11 +58,10 @@ namespace :github do
"name" => "bundled-dependencies-${{ github.run_id }}-#{runtime.alias}",
}
},
{ "run" => "bundle install --local" },
{ "run" => "bundle install && bundle exec rake compile_ext" },
{
"name" => "Test ${{ matrix.task }} with ${{ matrix.gemfile }}",
"env" => { "BUNDLE_GEMFILE" => "${{ matrix.gemfile }}" },
"run" => "bundle install && bundle exec rake spec:${{ matrix.task }}"
"run" => "bundle exec rake spec:${{ matrix.task }}"
}
]
}
Expand Down

0 comments on commit d9b99f5

Please sign in to comment.