Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
3479d9a
Initialize Rails app (Rails 8 + sqlite3)
kelvennds1 Nov 16, 2025
1edae4a
Add cucumber e capybara
kelvennds1 Nov 16, 2025
29c962d
Delete Entrega da Primeira Sprint (2).pdf
kelvennds1 Nov 16, 2025
2156f6e
feat: adiciona testes BDD para sistema de login
gabrielns23 Nov 16, 2025
3407073
Add BDD feature for #100: cadastro de usuários via importação SIGAA
kelvennds1 Nov 16, 2025
bfceee0
Add BDD feature for #105: password setup flow
kelvennds1 Nov 16, 2025
1afdc58
Add BDD feature for #103: create evaluation forms from template
kelvennds1 Nov 16, 2025
69948a0
Add BDD feature for #109: view pending forms to answer
kelvennds1 Nov 16, 2025
775cb03
Fix CI: install importmap-rails and add bin/importmap for audit step
kelvennds1 Nov 16, 2025
c7f2894
Fix CI: add importmap bin/config for audit step
kelvennds1 Nov 16, 2025
51e7f2a
Fix CI: add importmap bin/config for audit step
kelvennds1 Nov 16, 2025
2645c12
Fix CI: add importmap bin/config for audit step
kelvennds1 Nov 16, 2025
c9782de
feat: cria cenarios para BDD de sistema de login
gabrielns23 Nov 17, 2025
88dbc5f
Fix lint violations and improve Gemfile configuration
kelvennds1 Nov 17, 2025
6868ebf
Merge pull request #2 from kelvennds1/sprint-1-bdd-103
kelvennds1 Nov 17, 2025
a7359d2
feat: cria cenarios para BDD de sincronia com base de dados do Sigaa
gabrielns23 Nov 17, 2025
17419ed
Merge master corrections into sprint-1-bdd-100 branch
kelvennds1 Nov 17, 2025
b3ac1a3
Merge branch 'master' into sprint-1-bdd-105
kelvennds1 Nov 17, 2025
446c04c
Merge master corrections into sprint-1-bdd-109 branch
kelvennds1 Nov 17, 2025
0aaa0fb
feat: cria teste BDD de download de relaorio de desempenho das turmas
gabrielns23 Nov 17, 2025
8725b35
fix: conserta erros que estavam no arquivo
gabrielns23 Nov 17, 2025
b35956b
fix: corrige erros no cenario
gabrielns23 Nov 17, 2025
c0741eb
fix: corrige erros dos cenarios para a feature de base de dados
gabrielns23 Nov 17, 2025
fa5bcab
Merge pull request #4 from kelvennds1/sprint-1-bdd-109
kelvennds1 Nov 18, 2025
76c9f4b
Merge pull request #3 from kelvennds1/sprint-1-bdd-100
kelvennds1 Nov 18, 2025
23f8d19
Merge pull request #1 from kelvennds1/sprint-1-bdd-105
kelvennds1 Nov 18, 2025
f898214
fix: corrige branch do workflow CI de main para master
kelvennds1 Nov 18, 2025
d7ffdea
Merge branch 'master' into sprint-1-BDD-base-dados
kelvennds1 Nov 18, 2025
e94729f
Merge branch 'master' into sprint-1-BDD-relatorio-admin
kelvennds1 Nov 18, 2025
02708b5
Merge branch 'master' into sprint-1-BDD-sistema-login
kelvennds1 Nov 18, 2025
089a286
Merge pull request #5 from kelvennds1/sprint-1-BDD-base-dados
kelvennds1 Nov 18, 2025
e2aba94
Merge pull request #6 from kelvennds1/sprint-1-BDD-relatorio-admin
kelvennds1 Nov 18, 2025
468014e
Merge pull request #7 from kelvennds1/sprint-1-BDD-sistema-login
kelvennds1 Nov 18, 2025
2bb2bd9
chore: adiciona .gitignore e remove arquivos temporários do git
kelvennds1 Nov 18, 2025
6467585
Adiciona .gitignore e remove arquivos temporários do git
kelvennds1 Nov 18, 2025
33ea75c
Add BDD features #111 e #112
ManoTeixas Nov 18, 2025
97e0584
feat(bdd-111): adiciona feature de visualização de templates (#111)\n…
kelvennds1 Nov 18, 2025
757d091
Merge pull request #8 from kelvennds1/sprint-1-bdd-111
kelvennds1 Nov 18, 2025
7640f6c
Adiciona a feature de importação de dados do SIGAA (#113) e as featur…
ManoTeixas Nov 19, 2025
ee79241
Merge master into sprint1bdd para sincronizar com PR #8
kelvennds1 Nov 19, 2025
4a36892
fix: corrige erros de formatação RuboCop nos step definitions
kelvennds1 Nov 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# See https://docs.docker.com/engine/reference/builder/#dockerignore-file for more about ignoring files.

# Ignore git directory.
/.git/
/.gitignore

# Ignore bundler config.
/.bundle

# Ignore all environment files.
/.env*

# Ignore all default key files.
/config/master.key
/config/credentials/*.key

# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep

# Ignore pidfiles, but keep the directory.
/tmp/pids/*
!/tmp/pids/.keep

# Ignore storage (uploaded files in development and any SQLite databases).
/storage/*
!/storage/.keep
/tmp/storage/*
!/tmp/storage/.keep

# Ignore assets.
/node_modules/
/app/assets/builds/*
!/app/assets/builds/.keep
/public/assets

# Ignore CI service files.
/.github

# Ignore Kamal files.
/config/deploy*.yml
/.kamal

# Ignore development files
/.devcontainer

# Ignore Docker-related files
/.dockerignore
/Dockerfile*
75 changes: 75 additions & 0 deletions .gitgnore
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Created by https://www.toptal.com/developers/gitignore/api/rails
# Edit at https://www.toptal.com/developers/gitignore?templates=rails

### Rails ###
*.rbc
capybara-*.html
.rspec
/db/*.sqlite3
/db/*.sqlite3-journal
/db/*.sqlite3-[0-9]*
/public/system
/coverage/
/spec/tmp
*.orig
rerun.txt
pickle-email-*.html

# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep

# TODO Comment out this rule if you are OK with secrets being uploaded to the repo
config/initializers/secret_token.rb
config/master.key

# Only include if you have production secrets in this file, which is no longer a Rails default
# config/secrets.yml

# dotenv, dotenv-rails
# TODO Comment out these rules if environment variables can be committed
.env
.env*.local

## Environment normalization:
/.bundle
/vendor/bundle

# these should all be checked in to normalize the environment:
# Gemfile.lock, .ruby-version, .ruby-gemset

# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc

# if using bower-rails ignore default bower_components path bower.json files
/vendor/assets/bower_components
*.bowerrc
bower.json

# Ignore pow environment settings
.powenv

# Ignore Byebug command history file.
.byebug_history

# Ignore node_modules
node_modules/

# Ignore precompiled javascript packs
/public/packs
/public/packs-test
/public/assets

# Ignore yarn files
/yarn-error.log
yarn-debug.log*
.yarn-integrity

# Ignore uploaded files in development
/storage/*
!/storage/.keep
/public/uploads

# End of https://www.toptal.com/developers/gitignore/api/rails
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: bundler
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10
124 changes: 124 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
name: CI

on:
pull_request:
push:
branches: [ master ]

jobs:
scan_ruby:
runs-on: ubuntu-latest

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

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

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

- name: Scan for known security vulnerabilities in gems used
run: bin/bundler-audit

scan_js:
runs-on: ubuntu-latest

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

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

- name: Scan for security vulnerabilities in JavaScript dependencies
run: bin/importmap audit

lint:
runs-on: ubuntu-latest
env:
RUBOCOP_CACHE_ROOT: tmp/rubocop
steps:
- name: Checkout code
uses: actions/checkout@v5

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

- name: Prepare RuboCop cache
uses: actions/cache@v4
env:
DEPENDENCIES_HASH: ${{ hashFiles('.ruby-version', '**/.rubocop.yml', '**/.rubocop_todo.yml', 'Gemfile.lock') }}
with:
path: ${{ env.RUBOCOP_CACHE_ROOT }}
key: rubocop-${{ runner.os }}-${{ env.DEPENDENCIES_HASH }}-${{ github.ref_name == github.event.repository.default_branch && github.run_id || 'default' }}
restore-keys: |
rubocop-${{ runner.os }}-${{ env.DEPENDENCIES_HASH }}-

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

test:
runs-on: ubuntu-latest

# services:
# redis:
# image: valkey/valkey:8
# ports:
# - 6379:6379
# options: --health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Checkout code
uses: actions/checkout@v5

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

- name: Run tests
env:
RAILS_ENV: test
# RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
# REDIS_URL: redis://localhost:6379/0
run: bin/rails db:test:prepare test

system-test:
runs-on: ubuntu-latest

# services:
# redis:
# image: valkey/valkey:8
# ports:
# - 6379:6379
# options: --health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Checkout code
uses: actions/checkout@v5

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

- name: Run System Tests
env:
RAILS_ENV: test
# RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
# REDIS_URL: redis://localhost:6379/0
run: bin/rails db:test:prepare test:system

- name: Keep screenshots from failed system tests
uses: actions/upload-artifact@v4
if: failure()
with:
name: screenshots
path: ${{ github.workspace }}/tmp/screenshots
if-no-files-found: ignore
63 changes: 63 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'

# Ignore bundler config.
/.bundle

# Ignore all environment files (except templates).
/.env*
!/.env*.erb

# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep
!/tmp/pids/.keep

# Ignore pidfiles, but keep the directory.
/tmp/pids/*
!/tmp/pids/
!/tmp/pids/.keep

# Ignore storage (uploaded files in development and any SQLite databases).
/storage/*
!/storage/.keep
/tmp/storage/*
!/tmp/storage/
!/tmp/storage/.keep

# Ignore master key for decrypting credentials and more.
/config/master.key

# Ignore assets.
/app/assets/builds/*
!/app/assets/builds/.keep
/public/assets

# Ignore CI service files.
/.github

# Ignore development database files
*.sqlite3
*.sqlite3-journal
*.sqlite3-shm
*.sqlite3-wal

# Ignore bootsnap cache
/tmp/cache/

# Ignore node_modules
/node_modules

# Ignore yarn files
/yarn-error.log
yarn-debug.log*
.yarn-integrity

# Ignore uploaded files in development
/storage/development.sqlite3
/storage/test.sqlite3
8 changes: 8 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Omakase Ruby styling for Rails
inherit_gem: { rubocop-rails-omakase: rubocop.yml }

# Overwrite or add rules to create your own house style
#
# # Use `[a, [b, c]]` not `[ a, [ b, c ] ]`
# Layout/SpaceInsideArrayLiteralBrackets:
# Enabled: false
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby-3.4.1
Loading