diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ac03e1b..0913641 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: services: postgres: - image: postgres:10 + image: postgres:16 env: POSTGRES_PASSWORD: password ports: @@ -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: @@ -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 @@ -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 }}