Skip to content

Commit

Permalink
Remove services from CI
Browse files Browse the repository at this point in the history
  • Loading branch information
palkan committed Jun 17, 2020
1 parent b5cace4 commit 1e05e6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 29 deletions.
20 changes: 3 additions & 17 deletions .github/workflows/system_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,7 @@ jobs:
BUNDLE_JOBS: 4
BUNDLE_RETRY: 3
CI: true
DATABASE_URL: postgres://postgres:postgres@localhost:5432
CHROME_URL: http://localhost:3000
RAILS_ENV: test
services:
postgres:
image: postgres:11.1
ports: ["5432:5432"]
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
redis:
image: redis:5.0-alpine
ports: ["6379:6379"]
options: --health-cmd="redis-cli ping" --health-interval 1s --health-timeout 3s --health-retries 30
chrome:
image: browserless/chrome:1.31-chrome-stable
ports: ["3000:3000"]
options: -e CONNECTION_TIMEOUT=600000
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v1
Expand All @@ -40,9 +25,10 @@ jobs:
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6.5
- name: Install PostgreSQL 11 client
- name: Install libsqlite3
run: |
sudo apt-get -yqq install libpq-dev
sudo apt-get update
sudo apt-get install libsqlite3-dev
- name: Bundle install
run: |
bundle config path /home/runner/bundle
Expand Down
15 changes: 3 additions & 12 deletions .github/workflows/unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,7 @@ jobs:
BUNDLE_JOBS: 4
BUNDLE_RETRY: 3
CI: true
DATABASE_URL: postgres://postgres:postgres@localhost:5432
RAILS_ENV: test
services:
postgres:
image: postgres:11.1
ports: ["5432:5432"]
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
redis:
image: redis:5.0-alpine
ports: ["6379:6379"]
options: --health-cmd="redis-cli ping" --health-interval 1s --health-timeout 3s --health-retries 30
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v1
Expand All @@ -35,9 +25,10 @@ jobs:
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6.5
- name: Install PostgreSQL 11 client
- name: Install libsqlite3
run: |
sudo apt-get -yqq install libpq-dev
sudo apt-get update
sudo apt-get install libsqlite3-dev
- name: Bundle install
run: |
bundle config path /home/runner/bundle
Expand Down

0 comments on commit 1e05e6a

Please sign in to comment.