Skip to content

Commit

Permalink
the commit checks aren't working, saying permission denied. we'll see…
Browse files Browse the repository at this point in the history
… if this helps.
  • Loading branch information
minding-myown-business committed Jan 14, 2025
1 parent 780fa2f commit b79380d
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
ruby-version: .ruby-version
bundler-cache: true

- name: Set execution permissions for bin/rails
run: chmod +x bin/rails

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

Expand All @@ -35,6 +38,9 @@ jobs:
ruby-version: .ruby-version
bundler-cache: true

- name: Set execution permissions for bin/rails
run: chmod +x bin/rails

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

Expand All @@ -50,18 +56,15 @@ jobs:
ruby-version: .ruby-version
bundler-cache: true

- name: Set execution permissions for bin/rails
run: chmod +x bin/rails

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

test:
runs-on: ubuntu-latest

# services:
# redis:
# image: redis
# ports:
# - 6379:6379
# options: --health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Install packages
run: sudo apt-get update && sudo apt-get install --no-install-recommends -y build-essential git pkg-config google-chrome-stable
Expand All @@ -75,10 +78,12 @@ jobs:
ruby-version: .ruby-version
bundler-cache: true

- name: Set execution permissions for bin/rails
run: chmod +x bin/rails

- name: Run tests
env:
RAILS_ENV: test
# REDIS_URL: redis://localhost:6379/0
run: bin/rails db:test:prepare test test:system

- name: Keep screenshots from failed system tests
Expand All @@ -87,4 +92,4 @@ jobs:
with:
name: screenshots
path: ${{ github.workspace }}/tmp/screenshots
if-no-files-found: ignore
if-no-files-found: ignore

0 comments on commit b79380d

Please sign in to comment.