Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Commit

Permalink
fix: 🐛 CircleCI の設定ファイルの記述ミスを修正した (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikukyugamer authored Sep 25, 2021
1 parent 95c3cf7 commit 54f4613
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
27 changes: 14 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ jobs:
- run:
name: グッナイワールド
command: |
echo pwd
pwd
echo whoami
whoami
echo 'Good Night, World!'
environment:
FOO: BAR
Expand All @@ -55,32 +51,37 @@ jobs:
name: sudo apt update
command: |
sudo apt update
- run:
name: $SHELL を調べる
command: |
echo $SHELL
sudo chsh -s /bin/bash circleci
- run:
name: nodenv を用いて Node.js をインストール
command: |
git clone https://github.com/nodenv/nodenv.git ~/.nodenv
git clone https://github.com/nodenv/node-build.git ~/.nodenv/plugins/node-build
PATH="$HOME/.nodenv/bin:$PATH"
eval "$(nodenv init -)"
. ~/.profile
export PATH="$HOME/.nodenv/bin:$PATH"
export PATH="$HOME/.nodenv/shims:$PATH"
nodenv install 16.10.0
nodenv global 16.10.0
- run:
name: バージョン確認
command: |
# 'run' のたびに新しいシェルスクリプトが起動する形なので、毎回環境変数を設定する
export PATH="$HOME/.nodenv/bin:$PATH"
export PATH="$HOME/.nodenv/shims:$PATH"
node --version
npm --version
- run:
name: npm 経由で Yarn をインストールする
command: |
# 'run' のたびに新しいシェルスクリプトが起動する形なので、毎回環境変数を設定する
export PATH="$HOME/.nodenv/bin:$PATH"
export PATH="$HOME/.nodenv/shims:$PATH"
npm install -g yarn
# eval "$(nodenv init -)" を行っていないので、実行ファイルをインストールした後には手動で rehash する必要がある
nodenv rehash
yarn --version
# $ circleci local execute 用(デバッグ用)
Expand Down Expand Up @@ -118,7 +119,7 @@ workflows:
# https://circleci.com/docs/ja/2.0/workflows/
# メモ: cron のステップ構文 (たとえば、*/1、*/20) はサポートされません。 エレメントのカンマ区切りリスト内の範囲エレメントもサポートされません。
# Docker 内のタイムゾーンに関係なく、+0000 であることに注意する(書かれている日時よりも 9時間 に実行される)
cron: '30 03 * * *'
cron: '00 04 * * *'
filters:
branches:
only:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Renovate
on:
schedule:
- cron: '*/15 * * * *'
- cron: '*/30 * * * *'
jobs:
renovate:
runs-on: ubuntu-latest
Expand All @@ -11,4 +11,3 @@ jobs:
- name: Renovate を実行する
run: |
docker run --rm -e RENOVATE_TOKEN=${{ secrets.RENOVATE_TOKEN }} -v "renovate.json:/usr/src/app/config.js" renovate/renovate $GITHUB_REPOSITORY

0 comments on commit 54f4613

Please sign in to comment.