Skip to content

Commit 1a1138b

Browse files
committed
Fix: add raw tags.
1 parent 1796041 commit 1a1138b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

jekyll/_cci2/language-go.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,13 @@ Next we create a directory for collecting test results
176176

177177
Then we pull down the cache (if present). If this is your first run, this won't do anything.
178178

179+
{% raw %}
179180
```yaml
180181
- restore_cache: # restores saved cache if no changes are detected since last run
181182
keys:
182183
- go-mod-v4-{{ checksum "go.sum" }}
183184
```
185+
{% endraw %}
184186

185187
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.
186188

@@ -194,6 +196,7 @@ Both containers (primary and postgres) start simultaneously. Postgres, however,
194196

195197
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.
196198

199+
{% raw %}
197200
```yaml
198201
- run:
199202
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
204207
PACKAGE_NAMES=$(go list ./... | circleci tests split --split-by=timings --timings-type=classname)
205208
gotestsum --junitfile ${TEST_RESULTS}/gotestsum-report.xml -- $PACKAGE_NAMES
206209
```
210+
{% endraw %}
207211

208212
The command for running unit tests is more complicated than some of our other
209213
steps. Here we are using [test splitting]({{ site.baseurl
@@ -223,6 +227,7 @@ Next we run our actual build command using `make` - the Go sample project uses m
223227

224228
Now we will start the Postgres dependent service, using `curl` to ping it to validate that the service is up and running.
225229

230+
{% raw %}
226231
```yaml
227232
- run:
228233
name: Start service
@@ -238,6 +243,7 @@ Now we will start the Postgres dependent service, using `curl` to ping it to val
238243
sleep 5
239244
curl --retry 10 --retry-delay 1 -X POST --header "Content-Type: application/json" -d '{"email":"[email protected]","name":"Test User"}' http://localhost:8080/contacts
240245
```
246+
{% endraw %}
241247

242248
If all went well, the service ran and successfully responded to the post request at `localhost:8080`.
243249

0 commit comments

Comments
 (0)