@gyrocompass

Are you sure you want to delete the question?

If your question is resolved, you may close it.

Leaving a resolved question undeleted may help others!

We hope you find it useful!

GithabにてpushしてもActionsでsuccessの状態にならず困ってます。

解決したいこと

ここに解決したい内容を記載してください。

visual codeにてローカルリポジトリからリモートリポジトリへpushをし、
Actionsを確認したところ、successにならず困っております。
Workflowsの中身に問題があるのでしょうか。
解決方法を教えて下さい。
Githab初心者で解決方法が分からず、基本的な質問と思いますが
教えていただける方がいましたらお手数ですが宜しくお願い致します。
念のため実行したWorkflowsのプログラムも上げておきます。

発生している問題・エラー

出ているエラーメッセージを入力
Error: The process '/opt/hostedtoolcache/Ruby/3.0.5/x64/bin/bundle' failed with exit code 18


###Workflowsのプログラムの中身

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby

name: Ruby

on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]

permissions:
  contents: read

jobs:
  test:

    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby-version: ['2.6', '2.7', '3.0']

    steps:
    - uses: actions/checkout@v3
    - name: Set up Ruby
    # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
    # change this to (see https://github.com/ruby/setup-ruby#versioning):
    # uses: ruby/setup-ruby@v1
      uses: ruby/setup-ruby@ee2113536afb7f793eed4ce60e8d3b26db912da4 # v1.127.0
      with:
        ruby-version: ${{ matrix.ruby-version }}
        bundler-cache: true # runs 'bundle install' and caches installed gems automatically
    - name: Run tests
      run: bundle exec rake
0 likes

1Answer

Comments

  1. @gyrocompass

    Questioner

    投稿についてご返事頂きありがとうございます。
    Workflowsのプログラムの最後の行の"bundle exec rake"が適切ではないかもしれない
    ということでしょうか。
    念のため"bundle exec rspec"と修正して再度Actionsを確認したところ
    同じエラーが出ております。

Your answer might help someone💌