Handle error in Sidekiq::Deploy.mark! #550
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
name: ci | |
# Run Rails tests & Jest. If pass & on master, deploy to Heroku. | |
on: push | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:11.5 | |
ports: ["5432:5432"] | |
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 0 # heroku needs an unshallow clone | |
- name: Install PostgreSQL 11 client | |
run: sudo apt-get -yqq install libpq-dev | |
- name: Increase the amount of inotify watchers | |
# started getting this error around 20-03-01 | |
# https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers | |
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | |
- uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Set Node.js 16.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- name: Run install | |
uses: borales/actions-yarn@v4 | |
with: | |
cmd: install # will run `yarn install` command | |
- name: rails db:setup test test:system | |
env: | |
PGHOST: localhost | |
PGUSER: postgres | |
RAILS_ENV: test | |
RUBYOPT: "-W:no-deprecated -W:no-experimental" | |
run: | | |
bin/rails db:setup | |
bin/rails test | |
bin/rails test:system | |
- name: jest | |
run: npx jest test/javascript | |
- name: heroku deploy motzi | |
if: github.ref == 'refs/heads/master' && job.status == 'success' | |
uses: akhileshns/[email protected] # This is the action | |
with: | |
heroku_app_name: motzibread | |
heroku_email: ${{secrets.HEROKU_EMAIL}} | |
heroku_api_key: ${{secrets.HEROKU_API_KEY}} | |
- name: heroku deploy jinji | |
if: github.ref == 'refs/heads/master' && job.status == 'success' | |
uses: akhileshns/[email protected] # This is the action | |
with: | |
heroku_app_name: jinjichocolate | |
heroku_email: ${{secrets.HEROKU_EMAIL}} | |
heroku_api_key: ${{secrets.HEROKU_API_KEY}} |