mirror of
https://github.com/ryankazokas/turbovault-app.git
synced 2026-04-16 22:12:53 +00:00
Adds types
This commit is contained in:
34
.github/workflows/ci.yml
vendored
34
.github/workflows/ci.yml
vendored
@@ -8,6 +8,7 @@ on:
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: Linting & Security
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
@@ -20,15 +21,37 @@ jobs:
|
||||
ruby-version: '3.3'
|
||||
bundler-cache: true
|
||||
|
||||
- name: Run RuboCop (linting)
|
||||
run: bundle exec rubocop --parallel
|
||||
continue-on-error: true # Don't fail build on style issues
|
||||
- name: Run RuboCop (style/linting)
|
||||
run: bundle exec rubocop --parallel --format progress
|
||||
|
||||
- name: Run Brakeman (security scan)
|
||||
run: bundle exec brakeman -q --no-pager
|
||||
continue-on-error: true
|
||||
continue-on-error: true # Security warnings shouldn't block PRs
|
||||
|
||||
typecheck:
|
||||
name: Type Checking
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Ruby
|
||||
uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: '3.3'
|
||||
bundler-cache: true
|
||||
|
||||
- name: Generate Sorbet RBI files
|
||||
run: |
|
||||
bundle exec tapioca gems --no-doc --workers 1
|
||||
bundle exec tapioca dsl
|
||||
|
||||
- name: Run Sorbet type checker
|
||||
run: bundle exec srb tc
|
||||
|
||||
test:
|
||||
name: Tests
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
services:
|
||||
@@ -77,11 +100,12 @@ jobs:
|
||||
- name: Run tests
|
||||
run: bundle exec rails test
|
||||
|
||||
- name: Report coverage
|
||||
- name: Report test results
|
||||
if: always()
|
||||
run: echo "✅ Tests completed"
|
||||
|
||||
build-test:
|
||||
name: Docker Build
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
||||
Reference in New Issue
Block a user