Skip to content

Commit 699d1c7

Browse files
committed
fix: update circleci config.yml
1 parent 524f886 commit 699d1c7

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

.circleci/config.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
# Use the latest 2.1 version of CircleCI pipeline process engine.
2-
# See: https://circleci.com/docs/configuration-reference
31
version: 2.1
42
orbs:
53
codecov: codecov/codecov@3.2.5
6-
# Define a job to be invoked later in a workflow.
7-
# See: https://circleci.com/docs/configuration-reference/#jobs
84
jobs:
95
build:
10-
working_directory: ~/repo
6+
working_directory: ~/browser
117
docker:
12-
- image: circleci/golang:1.19
8+
- image: cimg/go:1.19.13
139
steps:
1410
- checkout
1511
- restore_cache:
@@ -29,13 +25,11 @@ jobs:
2925
- run:
3026
name: Run tests
3127
command: |
32-
go test -coverprofile=c.out
33-
go tool cover -html=c.out -o coverage.html
34-
mv coverage.html /tmp/artifacts
35-
- codecov/upload
28+
go test ./... -coverprofile=c.out
29+
mv c.out /tmp/artifacts
30+
- codecov/upload:
31+
file: /tmp/artifacts/c.out
3632

37-
# Invoke jobs via workflows
38-
# See: https://circleci.com/docs/configuration-reference/#workflows
3933
workflow:
4034
version: 2.1
4135
build-test:

0 commit comments

Comments
 (0)