0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Github Actions "Process completed with exit code 1."の対処方法

Posted at

環境

masOS Monterey 12.3.1

エラー内容

プルリクエスト作成しGithub Actionsを走らせたところ、
"Run bundle exec rails test"フローにて以下のエラーが発生した。

Error: Process completed with exit code 1.

原因

"Run bundle exec rails test"フローのログを遡る。

Run bundle exec rails test
  bundle exec rails test
  shell: /usr/bin/bash -e {0}
(erb):33:in `<main>': Cannot load database configuration: (NameError)
uninitialized constant DB_PORT

直前に設定した環境変数を''で囲み忘れる初歩的ミスでした。

対処方法

環境変数を修正し再度 git commit, git push
→ 無事にワークフロー通りました。

参考記事

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?