Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
Add token for codecov.
Browse files Browse the repository at this point in the history
  • Loading branch information
lauravuo committed Feb 8, 2024
1 parent 58b4ee3 commit cb4c0e2
Showing 1 changed file with 35 additions and 34 deletions.
69 changes: 35 additions & 34 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,39 +28,39 @@ jobs:
- repository: "findy-agent-auth"

steps:
# install indy
- uses: actions/checkout@v3
if: ${{ matrix.repository == 'findy-agent' }}
with:
repository: "findy-network/findy-wrapper-go"
- name: install indy
if: ${{ matrix.repository == 'findy-agent' }}
run: make indy_to_debian
- uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
repository: "findy-network/${{ matrix.repository }}"
ref: dev
path: './target'
- uses: actions/setup-go@v3
with:
go-version-file: './go.mod'
- name: test with ${{ matrix.repository }}
run: |
cd ./target
go mod edit -replace github.com/findy-network/findy-common-go=../
go mod tidy -e
go test -p 1 -failfast -timeout=1200s \
-coverpkg=github.com/findy-network/findy-common-go/... \
-coverprofile=coverage-${{ matrix.repository }}.txt \
-covermode=atomic \
./...
- name: store coverage file
uses: actions/upload-artifact@v3
with:
name: ${{ github.sha }}-coverage-${{ matrix.repository }}.txt
path: ./target/coverage-${{ matrix.repository }}.txt
retention-days: 1
# install indy
- uses: actions/checkout@v3
if: ${{ matrix.repository == 'findy-agent' }}
with:
repository: "findy-network/findy-wrapper-go"
- name: install indy
if: ${{ matrix.repository == 'findy-agent' }}
run: make indy_to_debian
- uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
repository: "findy-network/${{ matrix.repository }}"
ref: dev
path: "./target"
- uses: actions/setup-go@v3
with:
go-version-file: "./go.mod"
- name: test with ${{ matrix.repository }}
run: |
cd ./target
go mod edit -replace github.com/findy-network/findy-common-go=../
go mod tidy -e
go test -p 1 -failfast -timeout=1200s \
-coverpkg=github.com/findy-network/findy-common-go/... \
-coverprofile=coverage-${{ matrix.repository }}.txt \
-covermode=atomic \
./...
- name: store coverage file
uses: actions/upload-artifact@v3
with:
name: ${{ github.sha }}-coverage-${{ matrix.repository }}.txt
path: ./target/coverage-${{ matrix.repository }}.txt
retention-days: 1

env:
FAV_DB_PASSWORD: password
Expand Down Expand Up @@ -97,8 +97,9 @@ jobs:
with:
name: ${{ github.sha }}-coverage-findy-agent-auth.txt
- name: upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
files: ./coverage.txt,./coverage-findy-agent.txt,./coverage-findy-agent-vault.txt,./coverage-findy-agent-auth.txt
fail_ci_if_error: true
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit cb4c0e2

Please sign in to comment.