Skip to content

Commit

Permalink
fix: permission errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Tusho7 committed Aug 20, 2024
1 parent e0f304c commit 371e9b6
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on:
pull_request:
push:
branches: [ main ]
branches: [main]

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

- name: Set executable permissions for bin scripts
run: chmod +x bin/*

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

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

- name: Set executable permissions for bin scripts
run: chmod +x bin/*

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

lint:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -50,18 +57,15 @@ jobs:
ruby-version: .ruby-version
bundler-cache: true

- name: Set executable permissions for bin scripts
run: chmod +x bin/*

- 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 google-chrome-stable curl libjemalloc2 libsqlite3-0 libvips
Expand All @@ -75,10 +79,12 @@ jobs:
ruby-version: .ruby-version
bundler-cache: true

- name: Set executable permissions for bin scripts
run: chmod +x bin/*

- 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 Down

0 comments on commit 371e9b6

Please sign in to comment.