質問編集履歴
2
文の修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
githubにプッシュする際、circleciで自動テストを行おうとしましたが、bundle installで失敗しました
|
1
|
+
githubにプッシュする際、circleciで自動テストを行おうとしましたが、bundle install ,restoring cache, Installing Node modules で失敗しました
|
2
2
|
|
3
3
|
|
4
4
|
|
1
新たなエラーを追加。 解決したエラーは削除しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -2,46 +2,46 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
エラー
|
5
|
+
エラー restoring cache
|
6
6
|
---
|
7
7
|
```ここに言語を入力
|
8
|
+
error computing cache key: template: cacheKey:1:30: executing "cacheKey" at <checksum "~/project/yarn.lock">: error calling checksum: open /home/circleci/project/yarn.lock: no such file or directory
|
9
|
+
```
|
10
|
+
|
11
|
+
エラー Installing Node modules
|
12
|
+
---
|
13
|
+
```ここに言語を入力
|
8
14
|
#!/bin/bash -eo pipefail
|
9
|
-
if
|
15
|
+
if [ ! -f "package.json" ]; then
|
10
|
-
|
16
|
+
echo
|
11
|
-
|
17
|
+
echo "---"
|
12
|
-
|
18
|
+
echo "Unable to find your package.json file. Did you forget to set the app-dir parameter?"
|
19
|
+
echo "---"
|
20
|
+
echo
|
21
|
+
echo "Current directory: $(pwd)"
|
22
|
+
echo
|
23
|
+
echo
|
24
|
+
echo "List directory: "
|
25
|
+
echo
|
13
|
-
|
26
|
+
ls
|
14
|
-
echo "Gemfile.lock is bundled with bundler version $APP_BUNDLER_VERSION"
|
15
|
-
|
27
|
+
exit 1
|
16
28
|
fi
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
bundle check --path ./vendor/bundle || bundle install --path=./vendor/bundle
|
34
|
-
fi
|
35
|
-
|
36
|
-
|
37
|
-
Gemfile.lock is bundled with bundler version 2.1.4
|
38
|
-
bundler 2.1.4 is already installed.
|
39
|
-
[DEPRECATED] The `--path` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set path './vendor/bundle'`, and stop using this flag
|
40
|
-
Your Ruby version is 2.7.3, but your Gemfile specified 2.7.1
|
41
|
-
[DEPRECATED] The `--deployment` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set deployment 'true'`, and stop using this flag
|
42
|
-
Your Ruby version is 2.7.3, but your Gemfile specified 2.7.1
|
43
|
-
|
44
|
-
Exited with code exit status 18
|
29
|
+
case yarn in
|
30
|
+
npm)
|
31
|
+
if [[ "false" == "true" ]]; then
|
32
|
+
npm install
|
33
|
+
else
|
34
|
+
npm ci
|
35
|
+
fi
|
36
|
+
;;
|
37
|
+
yarn)
|
38
|
+
if [[ "false" == "true" ]]; then
|
39
|
+
yarn install
|
40
|
+
else
|
41
|
+
yarn install --frozen-lockfile
|
42
|
+
fi
|
43
|
+
;;
|
44
|
+
esac
|
45
45
|
```
|
46
46
|
|
47
47
|
.circleci/config.yml
|
@@ -66,13 +66,13 @@
|
|
66
66
|
jobs:
|
67
67
|
build:
|
68
68
|
docker:
|
69
|
-
- image: circleci/ruby:2.7-node
|
69
|
+
- image: circleci/ruby:2.7.1-node
|
70
70
|
working_directory: ~/videoapp
|
71
71
|
steps:
|
72
72
|
- setup
|
73
73
|
test:
|
74
74
|
docker:
|
75
|
-
- image: circleci/ruby:2.7-node
|
75
|
+
- image: circleci/ruby:2.7.1-node
|
76
76
|
- image: circleci/postgres:11.6-alpine
|
77
77
|
name: "db"
|
78
78
|
environment:
|