diff --git a/.github/workflows/system_test.yml b/.github/workflows/system_test.yml index 29ddc7d..58ecacd 100644 --- a/.github/workflows/system_test.yml +++ b/.github/workflows/system_test.yml @@ -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 @@ -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 diff --git a/.github/workflows/unit_test.yml b/.github/workflows/unit_test.yml index f1b7ad6..39b4c9c 100644 --- a/.github/workflows/unit_test.yml +++ b/.github/workflows/unit_test.yml @@ -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 @@ -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