You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: jekyll/_cci2/language-go.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -176,11 +176,13 @@ Next we create a directory for collecting test results
176
176
177
177
Then we pull down the cache (if present). If this is your first run, this won't do anything.
178
178
179
+
{% raw %}
179
180
```yaml
180
181
- restore_cache: # restores saved cache if no changes are detected since last run
181
182
keys:
182
183
- go-mod-v4-{{ checksum "go.sum" }}
183
184
```
185
+
{% endraw %}
184
186
185
187
And install the Go implementation of the JUnit reporting tool and other dependencies for our application. These are good candidates to be pre-installed in primary container.
186
188
@@ -194,6 +196,7 @@ Both containers (primary and postgres) start simultaneously. Postgres, however,
194
196
195
197
Now we run our tests. To do that, we need to set an environment variable for our database's URL and path to the DB migrations files. This step has some additional commands, we'll explain them below.
196
198
199
+
{% raw %}
197
200
```yaml
198
201
- run:
199
202
name: Run unit tests
@@ -204,6 +207,7 @@ Now we run our tests. To do that, we need to set an environment variable for our
204
207
PACKAGE_NAMES=$(go list ./... | circleci tests split --split-by=timings --timings-type=classname)
0 commit comments