Merge pull request #496 from OWASP/chore/remove-empty-scaffold-specs #7
This file contains hidden or 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 ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| ruby-version: ['3.4.1'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby-version }} | |
| bundler-cache: true | |
| - name: Install dependencies | |
| run: bundle install | |
| - name: Setup database | |
| run: | | |
| RAILS_ENV=test bundle exec rails db:create | |
| RAILS_ENV=test bundle exec rails db:migrate | |
| - name: Run tests | |
| env: | |
| RAILSGOAT_MAINTAINER: true | |
| run: bundle exec rspec | |
| - name: Run security audit | |
| run: bundle exec bundle-audit check --update | |
| continue-on-error: true |