forked from fs/rails-base-graphql-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Github actions instead Semaphore CI (fs#214)
* 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
1 parent
6e91f01
commit 2f986f2
Showing
5 changed files
with
61 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters