監査ログ項目 remote_addoress に使用する x-forwared-for / client-ip #266
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: Ruby CI | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby-version: [2.5, 2.6, 2.7] | |
rails-version: [5.2.x, 6.1.x] | |
env: | |
RAILS_VERSION: ${{ matrix.rails-version }} | |
CONFIG_FILE: ./config/bizside.yml | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby ${{ matrix.ruby-version }} | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby-version }} | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
- name: Install gem | |
run: bundle exec rake install | |
- name: Set up test app | |
run: bundle install -j4 | |
working-directory: ./bizside_test_app | |
- name: Run tests | |
run: rails test | |
working-directory: ./bizside_test_app |