Skip to content

Commit

Permalink
upgrading gems and tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
opedrosouza committed Sep 11, 2024
1 parent b13a504 commit b7c761a
Show file tree
Hide file tree
Showing 38 changed files with 2,260 additions and 2,875 deletions.
Binary file modified .DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions .env.development
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# DATABASE CONFIG
DB_NAME=boilerplate_development
DB_PASS=password
DB_USER=pedrosouza
DB_USER=pedro
DB_HOST=localhost
DB_PORT=5432
DB_URL=postgres://pedrosouza:password@localhost:5432/bolierplate_development
DB_URL=postgres://pedro:password@localhost:5432/bolierplate_development
4 changes: 2 additions & 2 deletions .env.test
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# DATABASE CONFIG
DB_NAME=boilerplate_test
DB_PASS=password
DB_USER=pedrosouza
DB_USER=pedro
DB_HOST=localhost
DB_PORT=5432
DB_URL=postgres://pedrosouza:password@localhost:5432/bolierplate_test
DB_URL=postgres://pedro:password@localhost:5432/bolierplate_test
50 changes: 39 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,38 @@ on:
- main

jobs:
scan_ruby:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: .ruby-version
bundler-cache: true

- name: Scan for common Rails security vulnerabilities using static analysis
run: bin/brakeman --no-pager

lint_ruby:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: .ruby-version
bundler-cache: true

- name: Lint Ruby code for consistent style
run: bin/rubocop -f github


test:
runs-on: ubuntu-latest
services:
Expand All @@ -30,27 +62,22 @@ jobs:
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler: default
ruby-version: .ruby-version
bundler-cache: true

- name: Install dependencies
run: bundle install --jobs 4 --retry 3

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20.13.1

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9.1.4
run_install: true

- name: Install dependencies
run: |
sudo apt update && sudo apt-get install -y -qq libvips
pnpm install
- name: Rubocop Check
run: bundle exec rubocop
npm install -g yarn
yarn install
- name: Run tests
env:
Expand All @@ -64,4 +91,5 @@ jobs:
RAILS_ENV: test
run: |
bin/rails db:test:prepare
bin/rails assets:precompile
bundle exec rspec
8 changes: 0 additions & 8 deletions .idea/.gitignore

This file was deleted.

29 changes: 0 additions & 29 deletions .idea/dataSources.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

4 changes: 0 additions & 4 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

Loading

0 comments on commit b7c761a

Please sign in to comment.