Skip to content

Dependabotがパッケージアップデート通知を行うための設定ファイルを追加 #2750

Dependabotがパッケージアップデート通知を行うための設定ファイルを追加

Dependabotがパッケージアップデート通知を行うための設定ファイルを追加 #2750

Workflow file for this run

name: Test
on: [pull_request]
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:13
env:
POSTGRES_USERNAME: postgres
POSTGRES_PASSWORD: password
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "18"
cache: "yarn"
- name: Install Dependencies
run: yarn workspaces focus --all --production
- name: Set up Ruby
env:
BUNDLE_WITHOUT: development
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Setup Database
env:
BUNDLE_WITHOUT: development
RAILS_ENV: test
POSTGRES_USERNAME: postgres
POSTGRES_PASSWORD: password
run: bundle exec rails db:create
- name: Assets precompile
env:
BUNDLE_WITHOUT: development
RAILS_ENV: test
run: bundle exec rails assets:precompile
- name: Run tests
env:
BUNDLE_WITHOUT: development
POSTGRES_USERNAME: postgres
POSTGRES_PASSWORD: password
run: bundle exec rspec
- name: Upload code coverage
uses: codecov/codecov-action@v4