mroonga:14.10 #829
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
paths-ignore: | |
- doc/** | |
- README.md | |
pull_request: {} | |
jobs: | |
test: | |
name: Test Log Archiver | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: | |
- '3.1' | |
- '3.2' | |
- '3.3' | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[ci skip]')" | |
env: | |
RAILS_ENV: test | |
TZ: Asia/Tokyo | |
services: | |
db: | |
image: koichan779/mroonga:14.10 | |
env: | |
MYSQL_ALLOW_EMPTY_PASSWORD: 1 | |
ports: | |
- 33060:3306 | |
redis: | |
image: redis:6 | |
ports: | |
- 6379:6379 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
# runs 'bundle install' and caches installed gems automatically | |
bundler-cache: true | |
- name: 'Enable corepack' | |
run: corepack enable | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/hydrogen' | |
cache: 'yarn' | |
- name: Compile JavaScripts (webpack) | |
run: | | |
yarn install | |
NODE_ENV=production bin/yarn webpack | |
- name: Setup database | |
run: | | |
cp config/database.yml.github_actions config/database.yml | |
bin/rails db:setup | |
- name: Run tests | |
run: bin/rails test |