Skip to content

Commit

Permalink
test5
Browse files Browse the repository at this point in the history
  • Loading branch information
RyosukeDTomita committed Aug 4, 2024
1 parent 54701e0 commit c41021c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/react-jest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ jobs:

# 3環境まとめてテスト
- name: run npm run test
env:
GH_TOKEN: ${{ secrets.token }} # gh用
run: |
if [ ${{ matrix.environment_type }} = "development" ]; then
npm_type="dev"
Expand All @@ -55,7 +57,8 @@ jobs:
echo "invalid environment_type"
exit 1
fi
# github actions environment variableから.envファイルを作成
# environmentにあった名称でenv_fileを作成し,github actions environment variableを書き込み
# NOTE: env_fileはgitで管理したくないため,workflow実行時に作成している。
env_file=".env.${{ matrix.environment_type }}"
touch $env_file
cat <<EOF >> $env_file
Expand Down

0 comments on commit c41021c

Please sign in to comment.