Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 39 additions & 4 deletions .github/workflows/got.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ jobs:
with:
go-version: 1.23

- name: Install got
run: go install ./cmd/got
- name: Install got with coverage
run: |
go install -cover ./cmd/got
mkdir -p coverage
echo "GOCOVERDIR=$PWD/coverage" >> $GITHUB_ENV

- name: Test init project
run: got init ../foo
Expand Down Expand Up @@ -51,6 +54,21 @@ jobs:
cd ../foo
got install -v .

- name: Convert coverage data
run: |
go tool covdata textfmt -i=coverage -o coverage.integration.txt
echo "mode: atomic" > final_coverage.txt

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.integration.txt
flags: integration
name: codecov-umbrella
fail_ci_if_error: true


test:
continue-on-error: true
strategy:
Expand All @@ -71,8 +89,11 @@ jobs:
with:
go-version: 1.23

- name: Install got
run: go install ./cmd/got
- name: Install got with coverage
run: |
go install -cover ./cmd/got
mkdir -p coverage
echo "GOCOVERDIR=$PWD/coverage" >> $GITHUB_ENV

- name: Test init project
run: got init $HOME/foo
Expand Down Expand Up @@ -100,3 +121,17 @@ jobs:
run: |
cd $HOME/foo
got install -v .

- name: Convert coverage data
run: |
go tool covdata textfmt -i=coverage -o coverage.integration.txt
echo "mode: atomic" > final_coverage.txt

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.integration.txt
flags: integration
name: codecov-umbrella
fail_ci_if_error: true
Loading