Skip to content

fix bundling

fix bundling #36

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [main]
jobs:
scan_ruby:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.4
bundler-cache: true
- name: Brakeman
run: bin/brakeman --no-pager
- name: Bundler Audit
run: bin/bundler-audit
lint:
runs-on: ubuntu-latest
env:
RUBOCOP_CACHE_ROOT: tmp/rubocop
steps:
- uses: actions/checkout@v6
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.4
bundler-cache: true
- name: Cache RuboCop
uses: actions/cache@v4
with:
path: ${{ env.RUBOCOP_CACHE_ROOT }}
key: rubocop-${{ runner.os }}-${{ hashFiles('.ruby-version', '**/.rubocop.yml', '**/.rubocop_todo.yml', 'Gemfile.lock') }}
- name: RuboCop
run: bin/rubocop -f github
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.4
bundler-cache: true
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install JS deps
run: npm ci
- name: Build Vite assets (test)
run: npm run build -- --mode=test
env:
RAILS_ENV: test
- name: Run tests
env:
RAILS_ENV: test
run: bin/rails db:test:prepare test
system-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.4
bundler-cache: true
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install JS deps
run: npm ci
- name: Build Vite assets (test)
run: npm run build -- --mode=test
env:
RAILS_ENV: test
- name: Install Chrome
uses: browser-actions/setup-chrome@v1
- name: Run system tests
env:
RAILS_ENV: test
run: bin/rails db:test:prepare test:system
- name: Upload screenshots
if: failure()
uses: actions/upload-artifact@v4
with:
name: screenshots
path: tmp/screenshots
if-no-files-found: ignore