-
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.
Merge pull request #78 from kabisa/update-heroku-stack
Update ruby and bundler version
- Loading branch information
Showing
42 changed files
with
927 additions
and
635 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 |
---|---|---|
|
@@ -10,8 +10,10 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: "Install Heroku CLI" | ||
run: curl https://cli-assets.heroku.com/install.sh | sh | ||
- uses: akhileshns/[email protected] | ||
with: | ||
heroku_api_key: ${{secrets.HEROKU_API_KEY}} | ||
heroku_app_name: "kudo-o-matic-production" | ||
heroku_email: "[email protected]" | ||
heroku_email: "[email protected]" |
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 |
---|---|---|
|
@@ -3,14 +3,14 @@ name: Rails test and deploy | |
on: | ||
push: | ||
branches: | ||
- '*' | ||
- '*/*' | ||
- '!master' | ||
- "*" | ||
- "*/*" | ||
- "!master" | ||
pull_request: | ||
branches: | ||
- '*' | ||
- '*/*' | ||
- '!master' | ||
- "*" | ||
- "*/*" | ||
- "!master" | ||
|
||
jobs: | ||
test: | ||
|
@@ -19,55 +19,49 @@ jobs: | |
POSTGRES_PASSWORD: postgres | ||
RAILS_ENV: test | ||
|
||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-24.04 | ||
|
||
services: | ||
db: | ||
image: postgres:10.2 | ||
ports: | ||
- 5432:5432 | ||
- 5432:5432 | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ruby/[email protected] | ||
with: | ||
ruby-version: 2.5.4 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: vendor/bundle | ||
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-gems- | ||
- name: Bundle install | ||
run: | | ||
sudo apt-get -yqq install libpq-dev | ||
gem install bundler -v 2.3.26 | ||
bundle config path vendor/bundle | ||
bundle install --jobs=3 --retry=3 --without production | ||
- name: Setup environment and database | ||
run: | | ||
cp env.example .env | ||
cp config/database.yml.ci config/database.yml | ||
bundle exec rails db:create | ||
bundle exec rails db:migrate | ||
- name: Run tests | ||
run: | | ||
bundle exec rspec | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies | ||
run: sudo apt-get update && sudo apt-get install -y libmagickwand-dev imagemagick | ||
|
||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
|
||
- name: Setup environment and database | ||
run: | | ||
cp env.example .env | ||
cp config/database.yml.ci config/database.yml | ||
bundle exec rails db:create | ||
bundle exec rails db:migrate | ||
- name: Run tests | ||
run: | | ||
bundle exec rspec | ||
deploy-staging: | ||
if: ${{ github.ref == 'refs/heads/develop' }} | ||
if: ${{ github.ref == 'refs/heads/update-heroku-stack' }} | ||
needs: test | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: "Install Heroku CLI" | ||
run: curl https://cli-assets.heroku.com/install.sh | sh | ||
- uses: akhileshns/[email protected] | ||
with: | ||
heroku_api_key: ${{secrets.HEROKU_API_KEY}} | ||
heroku_app_name: "kudo-o-matic-staging" | ||
heroku_email: "[email protected]" | ||
heroku_email: "[email protected]" |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ruby 2.7.8 |
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
Oops, something went wrong.