Skip to content

Commit 7721868

Browse files
Update GitHub Actions workflow to use bash shell for binary selection and remove test coverage steps, streamlining the CI process.
1 parent da5b999 commit 7721868

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

.github/workflows/go.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
name: cli-binaries
4545
path: .
4646
- name: Select correct binary
47+
shell: bash
4748
run: |
4849
if [ "${{ matrix.os }}" = "windows-latest" ]; then
4950
mv cli-v2.exe cli-v2
@@ -58,15 +59,6 @@ jobs:
5859
- name: Install dependencies from .codacy/codacy.yaml
5960
run: |
6061
./cli-v2 install
61-
- name: "Run tests"
62-
run: |
63-
go test -coverprofile=unit.coverage.out ./...
64-
- name: "Upload coverage to Codacy"
65-
if: matrix.os == 'ubuntu-latest' # Only upload coverage from Ubuntu
66-
env:
67-
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
68-
run: |
69-
bash <(curl -Ls https://coverage.codacy.com/get.sh) report --force-coverage-parser go -r unit.coverage.out
7062
7163
release:
7264
needs: test

0 commit comments

Comments
 (0)