Skip to content

Commit 364604e

Browse files
moioclaude
andcommitted
Use docker compose in CI to match local dev workflow
CI was using Ubuntu's native MySQL packages while local development uses containerized MariaDB from openSUSE via docker-compose. This version mismatch caused collation recognition failures (eg. from PR SUSE#1840). Run CI through docker compose so both environments use the same database engine and container setup. Ref: SUSE#1840 (comment) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent c88f340 commit 364604e

2 files changed

Lines changed: 6 additions & 24 deletions

File tree

.github/workflows/next-rails.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,11 @@ jobs:
1010
if: contains(github.head_ref, 'next-rails')
1111
runs-on: ubuntu-latest
1212
name: next-spec
13-
env:
14-
RAILS_ENV: test
1513
steps:
16-
- uses: actions/checkout@v2
17-
- name: Sets env vars for next-rails
18-
run: |
19-
echo "BUNDLE_GEMFILE=Gemfile.next" >> $GITHUB_ENV
20-
echo "BUNDLE_CACHE_PATH=vendor/cache.next" >> $GITHUB_ENV
21-
- uses: ruby/setup-ruby@v1
22-
with:
23-
bundler-cache: true
14+
- uses: actions/checkout@v4
2415
- name: Prepare spec
2516
run: |
26-
sudo systemctl start mysql.service
2717
wget -nv http://sphinxsearch.com/files/dicts/en.pak
28-
bundle exec rake dev:bootstrap --trace
29-
bundle exec bin/rake webdrivers:chromedriver:update
18+
docker compose run --rm -e BUNDLE_GEMFILE=Gemfile.next -e BUNDLE_CACHE_PATH=vendor/cache.next hackweek bundle exec rake dev:bootstrap --trace
3019
- name: Run tests
31-
run: bundle exec rspec --color --format documentation
20+
run: docker compose run --rm -e BUNDLE_GEMFILE=Gemfile.next -e BUNDLE_CACHE_PATH=vendor/cache.next hackweek bundle exec rspec --color --format documentation

.github/workflows/spec.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,11 @@ jobs:
1111
spec:
1212
runs-on: ubuntu-latest
1313
name: spec
14-
env:
15-
RAILS_ENV: test
1614
steps:
17-
- uses: actions/checkout@v2
18-
- uses: ruby/setup-ruby@v1
19-
with:
20-
bundler-cache: true
15+
- uses: actions/checkout@v4
2116
- name: Prepare spec
2217
run: |
23-
sudo systemctl start mysql.service
2418
wget -nv http://sphinxsearch.com/files/dicts/en.pak
25-
bundle exec rake dev:bootstrap --trace
26-
bundle exec bin/rake webdrivers:chromedriver:update
19+
docker compose run --rm hackweek bundle exec rake dev:bootstrap --trace
2720
- name: Run tests
28-
run: bundle exec rspec --color --format documentation
21+
run: docker compose run --rm hackweek bundle exec rspec --color --format documentation

0 commit comments

Comments
 (0)