Adds rack-attack to throttle requests and use memcached for it (#337) #195
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: CI | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- '**.md' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
name: test | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Lint | |
run: bundle exec rubocop | |
- name: Run tests | |
run: | | |
bundle exec rake db:schema:load | |
bundle exec rake ci | |
- name: Audit gems | |
run: bundle exec bundle-audit check --ignore CVE-2015-9284 # tempoarily ignore omniauth vulnerability |