From 4fd1cd77ae3ea8c8a38c2a63a13bc92ab90cbcd5 Mon Sep 17 00:00:00 2001 From: Mark Tareshawty Date: Sun, 8 Sep 2019 18:22:22 -0400 Subject: [PATCH 01/20] Create main.yml for CI --- .github/workflows/main.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000000..7223659ab9 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,25 @@ +name: Ruby + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Set up Ruby 2.4 + uses: actions/setup-ruby@v1 + with: + ruby-version: 2.4.2 + - name: Install dependencies + run: | + gem install bundler + bundle install --jobs 4 --retry 3 --without production + - name: Lint code with Rubocop + run: | + bundle exec rubocop -P + - name: Build and test with RSpec + run: | + bundle exec rspec From 202eadb2dc761bb498b77745f9a019aa0765dc31 Mon Sep 17 00:00:00 2001 From: Mark Tareshawty Date: Sun, 8 Sep 2019 18:24:13 -0400 Subject: [PATCH 02/20] s/2.4.2/2.4.x --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7223659ab9..6604258a6b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,7 +12,7 @@ jobs: - name: Set up Ruby 2.4 uses: actions/setup-ruby@v1 with: - ruby-version: 2.4.2 + ruby-version: 2.4.x - name: Install dependencies run: | gem install bundler From c47034e24314ba8884b7d73e03ead9b55bcf2dce Mon Sep 17 00:00:00 2001 From: Mark Tareshawty Date: Sun, 8 Sep 2019 18:35:44 -0400 Subject: [PATCH 03/20] Update Ruby to 2.4.6 --- .ruby-version | 2 +- Gemfile.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.ruby-version b/.ruby-version index 8e8299dcc0..7bf4b6a8ae 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.4.2 +2.4.6 diff --git a/Gemfile.lock b/Gemfile.lock index 9b40b10219..72ece0dbe4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -604,7 +604,7 @@ DEPENDENCIES webmock (~> 3.0, >= 3.0.1) RUBY VERSION - ruby 2.4.2p198 + ruby 2.4.6p354 BUNDLED WITH 2.0.2 From 67c91e1209876957ff3ddf1648b39b2ab7a03c37 Mon Sep 17 00:00:00 2001 From: Mark Tareshawty Date: Sun, 8 Sep 2019 18:35:53 -0400 Subject: [PATCH 04/20] Install Postgres client --- .github/workflows/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6604258a6b..27b407f9b3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,6 +13,10 @@ jobs: uses: actions/setup-ruby@v1 with: ruby-version: 2.4.x + - name: Install PostgreSQL + run: | + sudo apt-get update + sudo apt-get install -y postgresql-client libpq-dev - name: Install dependencies run: | gem install bundler From bce218f08269d98cb8b9f353d8b5697736ebf288 Mon Sep 17 00:00:00 2001 From: Mark Tareshawty Date: Sun, 8 Sep 2019 18:45:23 -0400 Subject: [PATCH 05/20] Add docker-compose command --- .github/workflows/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 27b407f9b3..55f89605ea 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,10 @@ jobs: uses: actions/setup-ruby@v1 with: ruby-version: 2.4.x - - name: Install PostgreSQL + - name: Start services + run: | + docker-compose up -d + - name: Install PostgreSQL Client run: | sudo apt-get update sudo apt-get install -y postgresql-client libpq-dev From d087b47bcefd8723856d8e28c13fa5d6d75b88f3 Mon Sep 17 00:00:00 2001 From: Mark Tareshawty Date: Sun, 8 Sep 2019 18:47:09 -0400 Subject: [PATCH 06/20] Set port to always be 2345 --- config/database.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/database.yml b/config/database.yml index f281e825d8..e3080cebef 100644 --- a/config/database.yml +++ b/config/database.yml @@ -37,7 +37,7 @@ local: &local # domain sockets, so uncomment these lines. host: localhost - port: <%= ENV.fetch("TRAVIS", false) ? 5432 : 2345 %> + port: 2345 production: &production url: <%= ENV["DATABASE_URL"] %> From 9ff90d1d7bbcdae7f91608aae459c90cc922a61d Mon Sep 17 00:00:00 2001 From: Mark Tareshawty Date: Sun, 8 Sep 2019 18:54:42 -0400 Subject: [PATCH 07/20] Create the db and load the schema --- .github/workflows/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 55f89605ea..9a2db3496b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,6 +24,10 @@ jobs: run: | gem install bundler bundle install --jobs 4 --retry 3 --without production + - name: Setup the Database + run: | + bundle exec rake db:create db:migrate db:test:prepare + bundle exec rake factor_bot:lint - name: Lint code with Rubocop run: | bundle exec rubocop -P From af9b872a8565fe68bfce21b75795081139d435fc Mon Sep 17 00:00:00 2001 From: Mark Tareshawty Date: Sun, 8 Sep 2019 18:58:57 -0400 Subject: [PATCH 08/20] s/factor/factory --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9a2db3496b..34230b3fcc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,7 +27,7 @@ jobs: - name: Setup the Database run: | bundle exec rake db:create db:migrate db:test:prepare - bundle exec rake factor_bot:lint + bundle exec rake factory_bot:lint - name: Lint code with Rubocop run: | bundle exec rubocop -P From f2d8536c1bf3c1cc9c600c1e8f792ef1c8b61d2e Mon Sep 17 00:00:00 2001 From: Mark Tareshawty Date: Sun, 8 Sep 2019 19:11:25 -0400 Subject: [PATCH 09/20] Add ENV variables --- .github/workflows/main.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 34230b3fcc..ab57fc9742 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,8 +29,16 @@ jobs: bundle exec rake db:create db:migrate db:test:prepare bundle exec rake factory_bot:lint - name: Lint code with Rubocop - run: | - bundle exec rubocop -P + run: bundle exec rubocop -P - name: Build and test with RSpec - run: | - bundle exec rspec + env: + classroom_webhook_url_prefix: https://example.com/github/hooks + github_client_id: client_id + github_client_secret: client_secret + google_client_id: google_client_id + google_client_secret: google_client_secret + rails_env: test + rack_env: test + webhook_secret: abcdefg + api_secret: abcdefg + run: bundle exec rspec From f33131281658443612dd175b837f0cf88b7a080e Mon Sep 17 00:00:00 2001 From: Jeff Rafter Date: Thu, 19 Sep 2019 15:53:35 -0700 Subject: [PATCH 10/20] Update main.yml Co-Authored-By: Stephanie Giang --- .github/workflows/main.yml | 72 ++++++++++++++++++++------------------ 1 file changed, 37 insertions(+), 35 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ab57fc9742..a41b28358b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,41 +4,43 @@ on: [push] jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - name: Set up Ruby 2.4 - uses: actions/setup-ruby@v1 - with: - ruby-version: 2.4.x - - name: Start services - run: | - docker-compose up -d - - name: Install PostgreSQL Client - run: | - sudo apt-get update - sudo apt-get install -y postgresql-client libpq-dev - - name: Install dependencies - run: | - gem install bundler - bundle install --jobs 4 --retry 3 --without production - - name: Setup the Database - run: | - bundle exec rake db:create db:migrate db:test:prepare - bundle exec rake factory_bot:lint - - name: Lint code with Rubocop - run: bundle exec rubocop -P - - name: Build and test with RSpec - env: - classroom_webhook_url_prefix: https://example.com/github/hooks - github_client_id: client_id - github_client_secret: client_secret - google_client_id: google_client_id - google_client_secret: google_client_secret - rails_env: test - rack_env: test - webhook_secret: abcdefg - api_secret: abcdefg - run: bundle exec rspec + - uses: actions/checkout@v1 + - name: Set up Ruby 2.6.4 + uses: actions/setup-ruby@v1 + with: + ruby-version: 2.6.4 + - name: Start services + run: | + docker-compose up -d + - name: Install PostgreSQL Client + run: | + sudo apt-get update + sudo apt-get install -y postgresql-client libpq-dev + - name: Install dependencies + run: | + gem install bundler + bundle install --jobs 4 --retry 3 --without production + - name: Setup the Database + run: | + bundle exec rake db:create db:schema:load db:test:prepare + bundle exec rake factory_bot:lint + - name: Lint code with Rubocop + env: + KNAPSACK_GENERATE_REPORT: true + run: ./bin/rake knapsack:rspec && ./bin/rubocop -D + - name: Build and test with RSpec + env: + classroom_webhook_url_prefix: https://example.com/github/hooks + github_client_id: client_id + github_client_secret: client_secret + google_client_id: google_client_id + google_client_secret: google_client_secret + rails_env: test + rack_env: test + redis_url: "redis://localhost:6379/0" + webhook_secret: abcdefg + api_secret: abcdefg + run: bundle exec rspec From e541e7920c1f8cb256351e1fea451d4da7bff11b Mon Sep 17 00:00:00 2001 From: Jeff Rafter Date: Thu, 19 Sep 2019 16:01:11 -0700 Subject: [PATCH 11/20] Latest 2.6.x --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a41b28358b..02b1989b0a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,10 +8,10 @@ jobs: steps: - uses: actions/checkout@v1 - - name: Set up Ruby 2.6.4 + - name: Set up Ruby 2.6.x uses: actions/setup-ruby@v1 with: - ruby-version: 2.6.4 + ruby-version: 2.6.x - name: Start services run: | docker-compose up -d From 0676f8b5b8c3b58db974e656a071ede04a36f6bd Mon Sep 17 00:00:00 2001 From: Jeff Rafter Date: Thu, 19 Sep 2019 16:08:31 -0700 Subject: [PATCH 12/20] More ruby Co-Authored-By: Stephanie Giang --- .github/workflows/main.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 02b1989b0a..33889c1c2b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,17 +8,17 @@ jobs: steps: - uses: actions/checkout@v1 - - name: Set up Ruby 2.6.x - uses: actions/setup-ruby@v1 - with: - ruby-version: 2.6.x + # - name: Set up Ruby 2.6.4 + # uses: actions/setup-ruby@v1 + # with: + # ruby-version: 2.6.4 - name: Start services run: | docker-compose up -d - name: Install PostgreSQL Client run: | sudo apt-get update - sudo apt-get install -y postgresql-client libpq-dev + sudo apt-get install -y postgresql-client libpq-dev ruby-full - name: Install dependencies run: | gem install bundler From e7a26e08f0d050d4f55c1a45295ee82896e3a1fc Mon Sep 17 00:00:00 2001 From: Jeff Rafter Date: Thu, 19 Sep 2019 16:11:43 -0700 Subject: [PATCH 13/20] Downgrade for a sec Co-Authored-By: Stephanie Giang --- .github/workflows/main.yml | 10 +++++----- .ruby-version | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 33889c1c2b..d8f1490bbf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,17 +8,17 @@ jobs: steps: - uses: actions/checkout@v1 - # - name: Set up Ruby 2.6.4 - # uses: actions/setup-ruby@v1 - # with: - # ruby-version: 2.6.4 + - name: Set up Ruby 2.6.3 + uses: actions/setup-ruby@v1 + with: + ruby-version: 2.6.3 - name: Start services run: | docker-compose up -d - name: Install PostgreSQL Client run: | sudo apt-get update - sudo apt-get install -y postgresql-client libpq-dev ruby-full + sudo apt-get install -y postgresql-client libpq-dev - name: Install dependencies run: | gem install bundler diff --git a/.ruby-version b/.ruby-version index 2714f5313a..ec1cf33c3f 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.6.4 +2.6.3 From ff4a491831eea3fd54839e11860d2bc120f91902 Mon Sep 17 00:00:00 2001 From: Jeff Rafter Date: Thu, 19 Sep 2019 16:20:18 -0700 Subject: [PATCH 14/20] All one env Co-Authored-By: Stephanie Giang --- .github/workflows/main.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d8f1490bbf..70d08967b4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,10 +29,7 @@ jobs: bundle exec rake factory_bot:lint - name: Lint code with Rubocop env: - KNAPSACK_GENERATE_REPORT: true - run: ./bin/rake knapsack:rspec && ./bin/rubocop -D - - name: Build and test with RSpec - env: + knapsack_generate_report: true classroom_webhook_url_prefix: https://example.com/github/hooks github_client_id: client_id github_client_secret: client_secret @@ -43,4 +40,4 @@ jobs: redis_url: "redis://localhost:6379/0" webhook_secret: abcdefg api_secret: abcdefg - run: bundle exec rspec + run: ./bin/rake knapsack:rspec && ./bin/rubocop -D From 921c6aac95ee06340325698673480e3fcdbf6510 Mon Sep 17 00:00:00 2001 From: Jeff Rafter Date: Thu, 19 Sep 2019 16:32:46 -0700 Subject: [PATCH 15/20] Caps are best Co-Authored-By: Stephanie Giang --- .github/workflows/main.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 70d08967b4..fb7ecf2492 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,15 +29,15 @@ jobs: bundle exec rake factory_bot:lint - name: Lint code with Rubocop env: - knapsack_generate_report: true - classroom_webhook_url_prefix: https://example.com/github/hooks - github_client_id: client_id - github_client_secret: client_secret - google_client_id: google_client_id - google_client_secret: google_client_secret - rails_env: test - rack_env: test - redis_url: "redis://localhost:6379/0" - webhook_secret: abcdefg - api_secret: abcdefg + KNAPSACK_GENERATE_REPORT: true + CLASSROOM_WEBHOOK_URL_PREFIX: https://example.com/github/hooks + GITHUB_CLIENT_ID: client_id + GITHUB_CLIENT_SECRET: client_secret + GOOGLE_CLIENT_ID: google_client_id + GOOGLE_CLIENT_SECRET: google_client_secret + RAILS_ENV: test + RACK_ENV: test + REDIS_URL: "redis://localhost:6379/0" + WEBHOOK_SECRET: abcdefg + API_SECRET: abcdefg run: ./bin/rake knapsack:rspec && ./bin/rubocop -D From 1299525aa9454dbb6a81e38e08fb6124068ebaad Mon Sep 17 00:00:00 2001 From: Jeff Rafter Date: Thu, 19 Sep 2019 16:42:20 -0700 Subject: [PATCH 16/20] Check redis Co-Authored-By: Stephanie Giang --- .github/workflows/main.yml | 54 +++++++++++++++++++++----------------- 1 file changed, 30 insertions(+), 24 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fb7ecf2492..335e9594bd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,29 +15,35 @@ jobs: - name: Start services run: | docker-compose up -d - - name: Install PostgreSQL Client + - name: Check redis run: | - sudo apt-get update - sudo apt-get install -y postgresql-client libpq-dev - - name: Install dependencies + lsof -i :6379 + - name: Check redis again run: | - gem install bundler - bundle install --jobs 4 --retry 3 --without production - - name: Setup the Database - run: | - bundle exec rake db:create db:schema:load db:test:prepare - bundle exec rake factory_bot:lint - - name: Lint code with Rubocop - env: - KNAPSACK_GENERATE_REPORT: true - CLASSROOM_WEBHOOK_URL_PREFIX: https://example.com/github/hooks - GITHUB_CLIENT_ID: client_id - GITHUB_CLIENT_SECRET: client_secret - GOOGLE_CLIENT_ID: google_client_id - GOOGLE_CLIENT_SECRET: google_client_secret - RAILS_ENV: test - RACK_ENV: test - REDIS_URL: "redis://localhost:6379/0" - WEBHOOK_SECRET: abcdefg - API_SECRET: abcdefg - run: ./bin/rake knapsack:rspec && ./bin/rubocop -D + lsof -i :9736 + # - name: Install PostgreSQL Client + # run: | + # sudo apt-get update + # sudo apt-get install -y postgresql-client libpq-dev + # - name: Install dependencies + # run: | + # gem install bundler + # bundle install --jobs 4 --retry 3 --without production + # - name: Setup the Database + # run: | + # bundle exec rake db:create db:schema:load db:test:prepare + # bundle exec rake factory_bot:lint + # - name: Lint code with Rubocop + # env: + # KNAPSACK_GENERATE_REPORT: true + # CLASSROOM_WEBHOOK_URL_PREFIX: https://example.com/github/hooks + # GITHUB_CLIENT_ID: client_id + # GITHUB_CLIENT_SECRET: client_secret + # GOOGLE_CLIENT_ID: google_client_id + # GOOGLE_CLIENT_SECRET: google_client_secret + # RAILS_ENV: test + # RACK_ENV: test + # REDIS_URL: "redis://localhost:6379/0" + # WEBHOOK_SECRET: abcdefg + # API_SECRET: abcdefg + # run: ./bin/rake knapsack:rspec && ./bin/rubocop -D From e3e1b98c5f3973426c091cca7cdcb956c9e2d38e Mon Sep 17 00:00:00 2001 From: Jeff Rafter Date: Thu, 19 Sep 2019 16:44:10 -0700 Subject: [PATCH 17/20] lsof Co-Authored-By: Stephanie Giang --- .github/workflows/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 335e9594bd..c138017d08 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,6 +15,10 @@ jobs: - name: Start services run: | docker-compose up -d + - name: Install lsof + run: | + sudo apt-get update + sudo apt-get install -y lsof - name: Check redis run: | lsof -i :6379 From 74dae38bb83e4fcaa785437eb953494ff9fc013a Mon Sep 17 00:00:00 2001 From: Jeff Rafter Date: Thu, 19 Sep 2019 16:46:55 -0700 Subject: [PATCH 18/20] Super user do Co-Authored-By: Stephanie Giang --- .github/workflows/main.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c138017d08..a430d0d349 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,16 +15,12 @@ jobs: - name: Start services run: | docker-compose up -d - - name: Install lsof - run: | - sudo apt-get update - sudo apt-get install -y lsof - name: Check redis run: | - lsof -i :6379 + sudo lsof -i :6379 - name: Check redis again run: | - lsof -i :9736 + sudo lsof -i :9736 # - name: Install PostgreSQL Client # run: | # sudo apt-get update From d259a2bbb2a56aa17629aa864032ab1280866fbe Mon Sep 17 00:00:00 2001 From: Jeff Rafter Date: Thu, 19 Sep 2019 16:49:06 -0700 Subject: [PATCH 19/20] Point to the docker redis Co-Authored-By: Stephanie Giang --- .github/workflows/main.yml | 54 +++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 30 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a430d0d349..7c446567f4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,35 +15,29 @@ jobs: - name: Start services run: | docker-compose up -d - - name: Check redis + - name: Install PostgreSQL Client run: | - sudo lsof -i :6379 - - name: Check redis again + sudo apt-get update + sudo apt-get install -y postgresql-client libpq-dev + - name: Install dependencies run: | - sudo lsof -i :9736 - # - name: Install PostgreSQL Client - # run: | - # sudo apt-get update - # sudo apt-get install -y postgresql-client libpq-dev - # - name: Install dependencies - # run: | - # gem install bundler - # bundle install --jobs 4 --retry 3 --without production - # - name: Setup the Database - # run: | - # bundle exec rake db:create db:schema:load db:test:prepare - # bundle exec rake factory_bot:lint - # - name: Lint code with Rubocop - # env: - # KNAPSACK_GENERATE_REPORT: true - # CLASSROOM_WEBHOOK_URL_PREFIX: https://example.com/github/hooks - # GITHUB_CLIENT_ID: client_id - # GITHUB_CLIENT_SECRET: client_secret - # GOOGLE_CLIENT_ID: google_client_id - # GOOGLE_CLIENT_SECRET: google_client_secret - # RAILS_ENV: test - # RACK_ENV: test - # REDIS_URL: "redis://localhost:6379/0" - # WEBHOOK_SECRET: abcdefg - # API_SECRET: abcdefg - # run: ./bin/rake knapsack:rspec && ./bin/rubocop -D + gem install bundler + bundle install --jobs 4 --retry 3 --without production + - name: Setup the Database + run: | + bundle exec rake db:create db:schema:load db:test:prepare + bundle exec rake factory_bot:lint + - name: Lint code with Rubocop + env: + KNAPSACK_GENERATE_REPORT: true + CLASSROOM_WEBHOOK_URL_PREFIX: https://example.com/github/hooks + GITHUB_CLIENT_ID: client_id + GITHUB_CLIENT_SECRET: client_secret + GOOGLE_CLIENT_ID: google_client_id + GOOGLE_CLIENT_SECRET: google_client_secret + RAILS_ENV: test + RACK_ENV: test + REDIS_URL: "redis://localhost:9736/0" + WEBHOOK_SECRET: abcdefg + API_SECRET: abcdefg + run: ./bin/rake knapsack:rspec && ./bin/rubocop -D From fac6814acbd7d05511190c7a38ccdd0f67cf0228 Mon Sep 17 00:00:00 2001 From: Jeff Rafter Date: Thu, 19 Sep 2019 16:58:52 -0700 Subject: [PATCH 20/20] Install yarn Co-Authored-By: Stephanie Giang --- .github/workflows/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7c446567f4..715c36df7c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,10 +19,15 @@ jobs: run: | sudo apt-get update sudo apt-get install -y postgresql-client libpq-dev + - name: Install yarn + run: | + curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 0.24.6 + export PATH=$HOME/.yarn/bin:$PATH - name: Install dependencies run: | gem install bundler bundle install --jobs 4 --retry 3 --without production + yarn install - name: Setup the Database run: | bundle exec rake db:create db:schema:load db:test:prepare