-
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.
Loading status checks…
CI with GitHub actions (#719)
* Github actions * Add Postgres service * Add postgres password * Remove postgres user * Add pg password in database.yml * runner user for Github actions pg * rails db:setup before tests * Fix yml? * Fix * More test DB connection fixing * Add redis service for Github Actions * Map ports for Redis service * Assets * Fix * Fix * More fixing * Argos * Fix yml * Fix Argos command hopefully * Remove Heroku CI setup
Showing
5 changed files
with
38 additions
and
38 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,34 @@ | ||
name: Test | ||
on: [push] | ||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
services: | ||
redis: | ||
image: redis | ||
ports: | ||
- 6379:6379 | ||
options: >- | ||
--health-cmd "redis-cli ping" | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
postgres: | ||
image: postgres:latest | ||
ports: | ||
- 5432:5432 | ||
env: | ||
POSTGRES_USER: runner | ||
POSTGRES_PASSWORD: postgres | ||
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v3 | ||
- run: yarn install | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
- run: bundle exec rails db:setup && bundle exec rake assets:precompile && bundle exec rake | ||
- name: Upload screenshots to argos-ci.com | ||
continue-on-error: true | ||
run: yarn exec argos upload tmp/capybara |
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
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
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