From 3ce14a94a58b926c7209e6642cdc16a80c477af5 Mon Sep 17 00:00:00 2001 From: Mohammad Amin Ahmadzai Date: Wed, 18 Jun 2025 19:48:11 -0700 Subject: [PATCH 1/2] Create rubyonrails.yml Signed-off-by: Mohammad Amin Ahmadzai --- .github/workflows/rubyonrails.yml | 60 +++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .github/workflows/rubyonrails.yml diff --git a/.github/workflows/rubyonrails.yml b/.github/workflows/rubyonrails.yml new file mode 100644 index 000000000000..26df94f5f92b --- /dev/null +++ b/.github/workflows/rubyonrails.yml @@ -0,0 +1,60 @@ +# This workflow uses actions that are not certified by GitHub. They are +# provided by a third-party and are governed by separate terms of service, +# privacy policy, and support documentation. +# +# This workflow will install a prebuilt Ruby version, install dependencies, and +# run tests and linters. +name: "Ruby on Rails CI" +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] +jobs: + test: + runs-on: ubuntu-latest + services: + postgres: + image: postgres:11-alpine + ports: + - "5432:5432" + env: + POSTGRES_DB: rails_test + POSTGRES_USER: rails + POSTGRES_PASSWORD: password + env: + RAILS_ENV: test + DATABASE_URL: "postgres://rails:password@localhost:5432/rails_test" + steps: + - name: Checkout code + uses: actions/checkout@v4 + # Add or replace dependency steps here + - name: Install Ruby and gems + uses: ruby/setup-ruby@78c01b705fd9d5ad960d432d3a0cfa341d50e410 # v1.179.1 + with: + bundler-cache: true + # Add or replace database setup steps here + - name: Set up database schema + run: bin/rails db:schema:load + # Add or replace test runners here + - 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@78c01b705fd9d5ad960d432d3a0cfa341d50e410 # v1.179.1 + with: + bundler-cache: true + - name: Generate binstubs + run: bundle binstubs bundler-audit brakeman rubocop + # Add or replace any other lints here + - 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 From f91783ffde29a268752a368809a570dae2334b7f Mon Sep 17 00:00:00 2001 From: mohammad amin ahmadzai <190144346+Maa1234567890@users.noreply.github.com> Date: Thu, 9 Apr 2026 01:44:23 +0430 Subject: [PATCH 2/2] Create MIATC Signed-off-by: mohammad amin ahmadzai <190144346+Maa1234567890@users.noreply.github.com> --- MIATC | 1 + 1 file changed, 1 insertion(+) create mode 100644 MIATC diff --git a/MIATC b/MIATC new file mode 100644 index 000000000000..8b137891791f --- /dev/null +++ b/MIATC @@ -0,0 +1 @@ +