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

Commit

Permalink
Merge pull request #191 from findy-network/use-releaser-bot
Browse files Browse the repository at this point in the history
Use releaser bot.
  • Loading branch information
lauravuo authored Feb 8, 2024
2 parents 5658f5d + cb4c0e2 commit 78e885c
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 36 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/do-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,15 @@ jobs:
runs-on: ubuntu-latest
name: Tag release if changes
steps:
- name: Generate a token
id: generate_token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.AGENCY_RELEASER_ID }}
private-key: ${{ secrets.AGENCY_RELEASER_KEY }}
- uses: findy-network/releaser-action@master
with:
# use personal access token so that events are created for tag push
token: ${{ secrets.RELEASER_PAT }}
token: ${{ steps.generate_token.outputs.token }}
gate: test
env:
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
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 78e885c

Please sign in to comment.