Skip to content
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

test:e2eをlinuxとmacでも動くように #1415

Merged

Conversation

Hiroshiba
Copy link
Member

内容

下の課題で、linuxやmac環境でe2eテストが動かないことがあることが分かりました。

e2eテストのみは全OSでやった方が良さそうに思ったので、そうするためのプルリクエストです。

関連 Issue

ref #1413
ref #1414

その他

electronやNode.jsが吸収してくれるようなタスクは1環境のみで良さそう。
electronのbackground.tsなどが絡むタスクはそうではないので全環境で回した方が良さそうかなと。

@Hiroshiba Hiroshiba requested a review from a team as a code owner July 20, 2023 20:06
@Hiroshiba Hiroshiba requested review from y-chan and removed request for a team July 20, 2023 20:06
Comment on lines -55 to +60
OS="${{ runner.os }}"
TARGET="${OS,,}-cpu" # 小文字にする
OS=$(echo "${{ runner.os }}" | tr "[:upper:]" "[:lower:]") # 小文字にする
TARGET="$OS-cpu"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MacOSで動かなかったので修正
(デフォルトのBashのバージョンが低いらしい)

Comment on lines -96 to +100
cat $TEMPDIR/target.json | jq -r '.tag_name' | sed -e 's_^_version=_' >> $GITHUB_OUTPUT
echo "version=$(jq -r '.tag_name' $TEMPDIR/target.json)" >> $GITHUB_OUTPUT
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ただのリファクタリング

Copy link
Member

@y-chan y-chan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Hiroshiba
Copy link
Member Author

マージします!!

@Hiroshiba Hiroshiba merged commit 6f25411 into VOICEVOX:main Jul 23, 2023
@Hiroshiba Hiroshiba deleted the テストにlinuxとmacを追加する branch July 23, 2023 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants