Skip to content

Commit 0d0992e

Browse files
authored
Add go 1.18 support; set Dockerfile to go 1.18 (#325)
1 parent 8093376 commit 0d0992e

File tree

2 files changed

+18
-25
lines changed

2 files changed

+18
-25
lines changed

.circleci/config.yml

+17-24
Original file line numberDiff line numberDiff line change
@@ -5,46 +5,38 @@ shared_configs:
55
name: Run tests
66
command: |
77
make deps test
8-
8+
full_job_steps: &full_job_steps
9+
- checkout
10+
- run:
11+
name: Run tests
12+
command: |
13+
make ci
914
1015
# Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/2.0/configuration-reference
1116
version: 2.1
1217
jobs:
1318
build-1-15:
1419
working_directory: ~/repo
1520
docker:
16-
- image: circleci/golang:1.15
21+
- image: cimg/go:1.15
1722
steps: *simple_job_steps
1823

1924
build-1-16:
2025
working_directory: ~/repo
2126
docker:
22-
- image: circleci/golang:1.16
23-
steps:
24-
- checkout
25-
- restore_cache:
26-
keys:
27-
- go-mod-v4-{{ checksum "go.sum" }}
28-
- run:
29-
name: Install Dependencies
30-
command: go mod download
31-
- save_cache:
32-
key: go-mod-v4-{{ checksum "go.sum" }}
33-
paths:
34-
- "/go/pkg/mod"
35-
- run:
36-
name: Run tests
37-
command: |
38-
#mkdir -p /tmp/test-reports
39-
#gotestsum --junitfile /tmp/test-reports/unit-tests.xml
40-
make ci
41-
#- store_test_results:
42-
# path: /tmp/test-reports
27+
- image: cimg/go:1.16
28+
steps: *full_job_steps
4329

4430
build-1-17:
4531
working_directory: ~/repo
4632
docker:
47-
- image: circleci/golang:1.17
33+
- image: cimg/go:1.17
34+
steps: *simple_job_steps
35+
36+
build-1-18:
37+
working_directory: ~/repo
38+
docker:
39+
- image: cimg/go:1.18
4840
steps: *simple_job_steps
4941

5042
workflows:
@@ -53,3 +45,4 @@ workflows:
5345
- build-1-15
5446
- build-1-16
5547
- build-1-17
48+
- build-1-18

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.15-alpine as builder
1+
FROM golang:1.18-alpine as builder
22
MAINTAINER FullStory Engineering
33

44
# create non-privileged group and user

0 commit comments

Comments
 (0)