Skip to content

Commit

Permalink
Fixed the ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yatish27 committed May 30, 2024
1 parent ea365b6 commit aec3d8c
Showing 1 changed file with 53 additions and 53 deletions.
106 changes: 53 additions & 53 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,59 +7,59 @@ on:
env:
RAILS_ENV: test
jobs:
# test:
# name: "Test"
# runs-on: ubuntu-latest
# env:
# DATABASE_URL: postgres://postgres:postgres@localhost:5432/ci
# services:
# postgres:
# image: postgres:16-alpine
# env:
# POSTGRES_DB: ci
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: postgres
# ports:
# - 5432:5432
# options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
# steps:
# - uses: actions/checkout@v4
# - uses: ruby/setup-ruby@v1
# with:
# bundler-cache: true
# - uses: oven-sh/setup-bun@v1
# with:
# bun-version: 1.1.8
# - run: bun install
# - run: bundle exec rake db:migrate
# - run: bundle exec rake test:all
# rubocop:
# name: "Lint / rubocop"
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: ruby/setup-ruby@v1
# with:
# bundler-cache: true
# - run: bin/rubocop
# brakeman:
# name: "Security / brakeman"
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: ruby/setup-ruby@v1
# with:
# bundler-cache: true
# - run: bundle exec brakeman --exit-on-warn --no-progress --color --output /dev/stdout
# bundle-audit:
# name: "Security / bundle-audit"
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: ruby/setup-ruby@v1
# with:
# bundler-cache: true
# - run: bundle exec bundle-audit check --update -v
test:
name: "Test"
runs-on: ubuntu-latest
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/ci
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_DB: ci
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- uses: oven-sh/setup-bun@v1
with:
bun-version: 1.1.8
- run: bun install
- run: bundle exec rake db:migrate
- run: bundle exec rake test:all
rubocop:
name: "Lint / rubocop"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- run: bin/rubocop
brakeman:
name: "Security / brakeman"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- run: bundle exec brakeman --exit-on-warn --no-progress --color --output /dev/stdout
bundle-audit:
name: "Security / bundle-audit"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- run: bundle exec bundle-audit check --update -v
build-and-push-image:
name: "Build and push Docker image"
if: github.ref == 'refs/heads/main'
Expand Down

0 comments on commit aec3d8c

Please sign in to comment.