Bump standard from 1.51.1 to 1.53.0 #1365
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: | |
| pull_request: | |
| branches: [ main, dev ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: postgres:14 | |
| env: | |
| POSTGRES_PASSWORD: postgres | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| bundler-cache: true | |
| - name: Compile CSS and JS | |
| run: | | |
| npm install -g [email protected] [email protected] | |
| yarn install | |
| yarn build | |
| yarn build:css | |
| - name: Run security scan | |
| run: bundle exec brakeman -q -w2 | |
| - name: Run linter | |
| run: bundle exec standardrb | |
| - name: Set up database | |
| env: | |
| RAILS_ENV: test | |
| DATABASE_URL: postgres://postgres:postgres@localhost:5432/access_pdf_test | |
| run: | | |
| bundle exec rails db:create | |
| bundle exec rails db:migrate | |
| - name: Run Non-JS tests | |
| env: | |
| RAILS_ENV: test | |
| DATABASE_URL: postgres://postgres:postgres@localhost:5432/access_pdf_test | |
| run: bundle exec rspec spec/models spec/requests | |
| - name: Run JS tests | |
| env: | |
| RAILS_ENV: test | |
| DATABASE_URL: postgres://postgres:postgres@localhost:5432/access_pdf_test | |
| run: bundle exec rspec spec/features | |
| - name: Keep screenshots from failed system tests | |
| uses: actions/upload-artifact@v6 | |
| if: failure() | |
| with: | |
| name: screenshots | |
| path: ${{ github.workspace }}/tmp/capybara | |
| if-no-files-found: ignore |