Skip to content

Commit

Permalink
Update CI configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
pat committed Nov 16, 2024
1 parent 4df16ec commit cfe16e0
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

services:
postgres:
image: postgres:10
image: postgres:16
env:
POSTGRES_PASSWORD: password
ports:
Expand All @@ -24,19 +24,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v2-beta
uses: actions/setup-node@v4.1.0
with:
node-version: '20'
- name: Get Yarn cache directory path
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Setup cache key and directory for node_modules cache
uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
cache: 'yarn'
node-version-file: '.tool-versions'
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
Expand All @@ -50,7 +43,6 @@ jobs:
LAST_FM_API_KEY: testing_key
LAST_FM_API_SECRET: testing_secret
run: |
echo $DATABASE_URL
./bin/bootstrap
./bin/rake
./bin/bundle exec rubocop
Expand All @@ -61,7 +53,7 @@ jobs:
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
- uses: akhileshns/heroku-deploy@v3.6.8 # This is the action
- uses: akhileshns/heroku-deploy@v3.13.15
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}
Expand Down

0 comments on commit cfe16e0

Please sign in to comment.