Skip to content

Asap 280 non admin report download #1348

Asap 280 non admin report download

Asap 280 non admin report download #1348

Workflow file for this run

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@v5
- 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@v5
if: failure()
with:
name: screenshots
path: ${{ github.workspace }}/tmp/capybara
if-no-files-found: ignore