Skip to content

Commit 619cd6a

Browse files
committed
Codecov changes/naming
1 parent 1c2b4ae commit 619cd6a

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
name: Go Agent CI - Dockerized
2-
1+
name: Go Agent CI
32
on: pull_request
43
env:
54
# Specifies which go version to run integration tests on
@@ -71,18 +70,18 @@ jobs:
7170
uses: actions/checkout@v2
7271
with:
7372
path: "go-agent"
74-
75-
- name: Build Docker Image
76-
run: docker build -f ${{ github.workspace }}/go-agent/Dockerfile ${{ github.workspace }} --build-arg GO_VERSION=${{ matrix.go-version || env.INTEGRATION_TESTS_GO_VERSION }} -t go-agent-tests-amd64
77-
- name: Run Tests in Docker
73+
- name: Set up Codecov environment variables
74+
run: ci_env=`bash <(curl -s https://codecov.io/env)`
75+
76+
- name: Set up Docker container and run tests
7877
run: |
7978
IFS=',' read -ra DIRS <<< "${{ matrix.dirs }}"
8079
for dir in "${DIRS[@]}"; do
8180
if [ -d "go-agent/$dir" ]; then
8281
if [[ "$dir" == *"nrnats"* ]]; then
83-
docker run -e GOPROXY=direct go-agent-tests-amd64 ./go-agent/run-tests.sh "$dir"
82+
docker run $ci_env -e CI=true -e GOPROXY=direct go-agent-tests-amd64 ./go-agent/run-tests.sh "$dir"
8483
else
85-
docker run go-agent-tests-amd64 ./go-agent/run-tests.sh "$dir"
84+
docker run $ci_env -e CI=true go-agent-tests-amd64 ./go-agent/run-tests.sh "$dir"
8685
fi
8786
else
8887
echo "Directory /app/$dir does not exist."

0 commit comments

Comments
 (0)