New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CIを設定 #38
CIを設定 #38
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
いくつかコメントしました:pray:
.github/workflows/actions.yml
Outdated
@@ -1,29 +1,42 @@ | |||
name: frontend_build | |||
run-name: ${{ github.actor }} is learning GitHub Actions | |||
on: [release] | |||
|
|||
on: [push] | |||
jobs: | |||
build_frontend: | |||
if: ${{ always() }} # 無条件にjobを実行 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[question]
こちらのalways
はおそらくですが、backendのjobが追加された場合を想定したものですよね?(そうであればこのままで大丈夫です:ok_hand:)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
そうですね
ただよく考えると、片方しか更新されてないのに両方でCIが走るのはどうなの?って思ったのでフロント、バックそれぞれ更新があった方にだけCIが走るように書き直します。
https://blog.35d.jp/2020-09-29-github-actions-path
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile | ||
|
||
|
||
# [5] ビルドチェック(linterが在れば要らない?) | ||
- name: build check | ||
run: pnpm build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
build checkはあるんですが、lintがないようです:eyes:
一応VSCode上でPrettierによる保存時フォーマットは有効になってはいると思うものの、
CIでもチェックしたほうがいいと思うのですがどうでしょうか?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cotton-alta
確かに。入れるべきかもしれません
@Percy08-dev
後ほど実行コマンドお送りします
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
今日フロント課題のセッティング等の方をやってたので明日コマンド作成します…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Percy08-dev
お待たせしました。
先ほど新しくプルリクを発行してマージしましたので、取り込んで以下の実行をお願いします!
pnpm ci/lint
- name: catalog build | ||
run: pnpm ci:ladle | ||
run: pnpm ci/ladle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
こちら申し訳ないのですが、github pagesが無料プランだと使えないようなので、一旦コメントアウトしておいてもらえますか:bow:(カタログのデプロイ先を別issueで検討したいと思います)
合わせて以下のようにTODOコメントも追記しておいていただけるとありがたいです:pray:
# TODO: https://github.com/stlatica/stlatica/issues/39
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cotton-alta
プライベートリポジトリだから、ですよねたぶん。
ブランチ保護もそうですし、公開にして解決するなら将来的に公開予定ですしもう出しちゃってもいいのではないかという気もしてきたのですがどうなんでしょう。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
公開にしちゃいますかー
discordの方で一応問題ないか確認してから変更させてください:pray:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
こちら申し訳ないのですが、github pagesが無料プランだと使えないようなので、一旦コメントアウトしておいてもらえますか🙇(カタログのデプロイ先を別issueで検討したいと思います)
こちらの問題は解決したので、忘れてもらって大丈夫です
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTMです:tada:対応ありがとうございます!!
2つほどsuggested changeがあるのですが、問題なさそうであればマージ前に取り込んじゃってください:pray:(commit suggestionで取り込めます)
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.20.6' | ||
cache: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- name: catalog build | ||
run: pnpm ci:ladle | ||
run: pnpm ci/ladle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
こちら申し訳ないのですが、github pagesが無料プランだと使えないようなので、一旦コメントアウトしておいてもらえますか🙇(カタログのデプロイ先を別issueで検討したいと思います)
こちらの問題は解決したので、忘れてもらって大丈夫です
Co-authored-by: cotton <chinoknct@gmail.com>
e8505bc
to
cdcc7cc
Compare
No description provided.