mirror of https://github.com/helm/helm
parent
fcec1c21ce
commit
49ed8be5cb
@ -1,31 +1,48 @@
|
|||||||
# Use the latest 2.1 version of CircleCI pipeline process engine.
|
# Use the latest 2.1 version of CircleCI pipeline process engine.
|
||||||
# See: https://circleci.com/docs/configuration-reference
|
# See: https://circleci.com/docs/configuration-reference
|
||||||
|
|
||||||
|
# For a detailed guide to building and testing with Go, read the docs:
|
||||||
|
# https://circleci.com/docs/language-go/ for more details
|
||||||
version: 2.1
|
version: 2.1
|
||||||
|
|
||||||
# Define a job to be invoked later in a workflow.
|
# Define a job to be invoked later in a workflow.
|
||||||
# See: https://circleci.com/docs/jobs-steps/#jobs-overview & https://circleci.com/docs/configuration-reference/#jobs
|
# See: https://circleci.com/docs/jobs-steps/#jobs-overview & https://circleci.com/docs/configuration-reference/#jobs
|
||||||
jobs:
|
jobs:
|
||||||
say-hello:
|
build:
|
||||||
# Specify the execution environment. You can specify an image from Docker Hub or use one of our convenience images from CircleCI's Developer Hub.
|
# Specify the execution environment. You can specify an image from Docker Hub or use one of our convenience images from CircleCI's Developer Hub.
|
||||||
# See: https://circleci.com/docs/executor-intro/ & https://circleci.com/docs/configuration-reference/#executor-job
|
# See: https://circleci.com/docs/executor-intro/ & https://circleci.com/docs/configuration-reference/#executor-job
|
||||||
docker:
|
docker:
|
||||||
# Specify the version you desire here
|
# Specify the version you desire here
|
||||||
# See: https://circleci.com/developer/images/image/cimg/base
|
# See: https://circleci.com/developer/images/image/cimg/go
|
||||||
- image: cimg/base:current
|
- image: cimg/go:1.21
|
||||||
|
|
||||||
# Add steps to the job
|
# Add steps to the job
|
||||||
# See: https://circleci.com/docs/jobs-steps/#steps-overview & https://circleci.com/docs/configuration-reference/#steps
|
# See: https://circleci.com/docs/jobs-steps/#steps-overview & https://circleci.com/docs/configuration-reference/#steps
|
||||||
steps:
|
steps:
|
||||||
# Checkout the code as the first step.
|
# Checkout the code as the first step.
|
||||||
- checkout
|
- checkout
|
||||||
|
- restore_cache:
|
||||||
|
keys:
|
||||||
|
- go-mod-v4-{{ checksum "go.sum" }}
|
||||||
|
- run:
|
||||||
|
name: Install Dependencies
|
||||||
|
command: go mod download
|
||||||
|
- save_cache:
|
||||||
|
key: go-mod-v4-{{ checksum "go.sum" }}
|
||||||
|
paths:
|
||||||
|
- "/go/pkg/mod"
|
||||||
- run:
|
- run:
|
||||||
name: "Say hello"
|
name: Run tests
|
||||||
command: "echo Hello, World!"
|
command: |
|
||||||
|
mkdir -p /tmp/test-reports
|
||||||
|
gotestsum --junitfile /tmp/test-reports/unit-tests.xml
|
||||||
|
- store_test_results:
|
||||||
|
path: /tmp/test-reports
|
||||||
|
|
||||||
# Orchestrate jobs using workflows
|
# Orchestrate jobs using workflows
|
||||||
# See: https://circleci.com/docs/workflows/ & https://circleci.com/docs/configuration-reference/#workflows
|
# See: https://circleci.com/docs/workflows/ & https://circleci.com/docs/configuration-reference/#workflows
|
||||||
workflows:
|
workflows:
|
||||||
say-hello-workflow: # This is the name of the workflow, feel free to change it to better match your workflow.
|
sample: # This is the name of the workflow, feel free to change it to better match your workflow.
|
||||||
# Inside the workflow, you define the jobs you want to run.
|
# Inside the workflow, you define the jobs you want to run.
|
||||||
jobs:
|
jobs:
|
||||||
- say-hello
|
- build
|
Loading…
Reference in new issue