diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 8eb75f50..b6849fa6 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -14,10 +14,7 @@ jobs: fail-fast: false matrix: ruby: - - '2.7' - - '3.0' - '3.1' - - '3.2' mroonga: - latest - mysql80-latest @@ -26,6 +23,7 @@ jobs: env: RAILS_ENV: test TZ: Asia/Tokyo + NODE_ENV: production services: db: image: groonga/mroonga:${{ matrix.mroonga }} @@ -47,13 +45,12 @@ jobs: bundler-cache: true # 参考: https://igarashikuniaki.net/diary/20200210.html - name: Install JavaScript packages - run: | - yarn install + run: yarn install - name: Setup database run: | cp config/database.yml.github_actions config/database.yml bin/rails db:setup - name: Compile JavaScripts (webpack) - run: NODE_ENV=production bin/yarn webpack + run: yarn webpack - name: Run tests - run: bin/rails test + run: bundle exec rails test