From d77040842791e9e50f4f2616b992a5775c11977c Mon Sep 17 00:00:00 2001 From: Dhamo1107 <101543595+Dhamo1107@users.noreply.github.com> Date: Wed, 18 Sep 2024 13:03:23 +0530 Subject: [PATCH] Update rubyonrails.yml --- .github/workflows/rubyonrails.yml | 33 ++++--------------------------- 1 file changed, 4 insertions(+), 29 deletions(-) diff --git a/.github/workflows/rubyonrails.yml b/.github/workflows/rubyonrails.yml index 5c23918..1a1bf29 100644 --- a/.github/workflows/rubyonrails.yml +++ b/.github/workflows/rubyonrails.yml @@ -8,7 +8,7 @@ on: jobs: test: - runs-on: ubuntu-latest + runs-on: windows-latest services: postgres: image: postgres:11-alpine @@ -41,37 +41,12 @@ jobs: - name: Ensure Rails binstubs are executable run: chmod +x bin/rails bin/rake + - name: Install dependencies + run: bundle install + - name: Set up database run: | bin/rails db:prepare - name: Run tests run: bin/rake - - lint: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Install Ruby and gems - uses: ruby/setup-ruby@v1 - with: - ruby-version: 3.1.2 - bundler-cache: true - - - name: Ensure binstubs are executable - run: chmod +x bin/bundler-audit bin/brakeman bin/rubocop - - - name: Generate binstubs - run: bundle binstubs bundler-audit brakeman rubocop - - - name: Security audit dependencies - run: bin/bundler-audit --update - - - name: Security audit application code - run: bin/brakeman -q -w2 - - - name: Lint Ruby files - run: bin/rubocop --parallel