Skip to content

Commit

Permalink
Use Github actions instead Semaphore CI (fs#214)
Browse files Browse the repository at this point in the history
* add config for github actions

* update config

* add vulnerabilities to ignore list

* update bin/quality

* disable bundler-audit

* remove semaphore ci config

* empty commit

* Update .github/workflows/ci.yml

Co-authored-by: Dmitry Barskov <[email protected]>

* fix review

* Update .github/workflows/ci.yml

Co-authored-by: Dmitry Barskov <[email protected]>

* Update bundler audit (fs#218)

* Update bundler audit

* Remove pg database option

* Add pg pass

Co-authored-by: Dmitry Barskov <[email protected]>
Co-authored-by: Arthur Zaharov <[email protected]>
  • Loading branch information
3 people authored Jul 29, 2022
1 parent 6e91f01 commit 2f986f2
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 109 deletions.
12 changes: 12 additions & 0 deletions .bundler-audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
ignore:
- CVE-2022-22577
- CVE-2022-27777
- CVE-2022-32224
- CVE-2022-32511
- CVE-2022-29181
- CVE-2022-30123
- CVE-2022-30122
- CVE-2022-32209
- CVE-2022-31163
- GHSA-cgx6-hpwq-fhv5
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: CI
on:
pull_request:
push:
branches:
- 'master'

jobs:
ci:
runs-on: ubuntu-latest
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432
REDIS_URL: redis://localhost:6379/0
RAILS_ENV: test
services:
postgres:
image: postgres
ports: ['5432:5432']
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis:
image: redis
ports: ['6379:6379']
options: --entrypoint redis-server
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true

- name: Run quality checks
run: bin/quality

- name: Setup db
run: bin/rails db:setup

- name: Run tests
run: bin/tests
25 changes: 0 additions & 25 deletions .semaphore/heroku.yml

This file was deleted.

81 changes: 0 additions & 81 deletions .semaphore/semaphore.yml

This file was deleted.

6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ GEM
msgpack (~> 1.0)
brakeman (5.2.1)
builder (3.2.4)
bundler-audit (0.6.1)
bundler-audit (0.9.1)
bundler (>= 1.2.0, < 3)
thor (~> 0.18)
thor (~> 1.0)
byebug (11.1.1)
concurrent-ruby (1.1.10)
connection_pool (2.2.5)
Expand Down Expand Up @@ -340,7 +340,7 @@ GEM
stringio (3.0.1)
strong_migrations (0.6.8)
activerecord (>= 5)
thor (0.20.3)
thor (1.2.1)
thread_safe (0.3.6)
time (0.2.0)
date
Expand Down

0 comments on commit 2f986f2

Please sign in to comment.