-
-
Notifications
You must be signed in to change notification settings - Fork 484
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
138 additions
and
118 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 |
---|---|---|
|
@@ -12,7 +12,6 @@ | |
|
||
ruby: | ||
- "**/*.rb" | ||
- "Gemfile*" | ||
|
||
javascript: | ||
- "**/*.js" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: standardrb lint | ||
|
||
on: [push] | ||
|
||
jobs: | ||
lint: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7.1 | ||
|
||
- name: install dependencies | ||
run: | | ||
bundle install | ||
- name: lint | ||
run: bundle exec standardrb |
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,87 @@ | ||
name: rspec and cypress | ||
|
||
on: [push] | ||
|
||
jobs: | ||
test: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
services: | ||
db: | ||
image: postgres:12.3 | ||
env: | ||
POSTGRES_PASSWORD: password | ||
ports: | ||
- 5432:5432 | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7.1 | ||
|
||
- name: Install PostgreSQL client | ||
run: | | ||
sudo apt-get -yqq install libpq-dev | ||
- name: Build App | ||
env: | ||
POSTGRES_HOST: localhost | ||
DATABASE_HOST: localhost | ||
POSTGRES_USER: postgres | ||
CASA_DATABASE_PASSWORD: password | ||
POSTGRES_PASSWORD: password | ||
POSTGRES_HOST_AUTH_METHOD: trust | ||
POSTGRES_PORT: 5432 | ||
run: | | ||
bundle install | ||
skylight disable_dev_warning | ||
yarn | ||
bundle exec rake db:create | ||
bundle exec rake db:schema:load | ||
bundle exec rails webpacker:compile | ||
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter | ||
chmod +x ./cc-test-reporter | ||
./cc-test-reporter before-build | ||
- name: Run rspec | ||
env: | ||
POSTGRES_HOST: localhost | ||
DATABASE_HOST: localhost | ||
POSTGRES_USER: postgres | ||
CASA_DATABASE_PASSWORD: password | ||
POSTGRES_PASSWORD: password | ||
POSTGRES_HOST_AUTH_METHOD: trust | ||
POSTGRES_PORT: 5432 | ||
PGHOST: localhost | ||
PGUSER: postgres | ||
RAILS_ENV: test | ||
run: | | ||
RUBYOPT='-W:no-deprecated -W:no-experimental' bundle exec rspec | ||
- name: Run cypress | ||
env: | ||
POSTGRES_HOST: localhost | ||
DATABASE_HOST: localhost | ||
POSTGRES_USER: postgres | ||
CASA_DATABASE_PASSWORD: password | ||
POSTGRES_PASSWORD: password | ||
POSTGRES_HOST_AUTH_METHOD: trust | ||
POSTGRES_PORT: 5432 | ||
run: | | ||
RUBYOPT='-W:no-deprecated -W:no-experimental' bundle exec rspec | ||
RAILS_ENV=test bundle exec rails server -b 0.0.0.0 -p 4040 -d | ||
RAILS_ENV=test bundle exec rake db:migrate | ||
RAILS_ENV=test bundle exec rake db:seed | ||
npm run test:cypress | ||
kill $(jobs -p) || true | ||
./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT | ||
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,23 @@ | ||
name: brakeman | ||
|
||
on: [push] | ||
|
||
jobs: | ||
brakeman: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7.1 | ||
|
||
- name: install dependencies | ||
run: | | ||
bundle install | ||
- name: brakeman | ||
run: bundle exec brakeman |
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
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