Add default parameter to content_security_policy_nonce for Rails compatibility #382
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: Build + Test | |
| on: [pull_request, push] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Build + Test | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| ruby: [ '2.7', '3.0', '3.1', '3.2', '3.4', '4.0' ] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Ruby ${{ matrix.ruby }} | |
| uses: ruby/setup-ruby@d697be2f83c6234b20877c3b5eac7a7f342f0d0c #v1.269.0 tag | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| bundler-cache: true | |
| - name: Build and test with Rake | |
| run: | | |
| bundle exec rubocop | |
| bundle exec rspec spec |