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

Start dev for v0.1.172. #1125

Start dev for v0.1.172.

Start dev for v0.1.172. #1125

Workflow file for this run

name: test
on: push
env:
FAV_DB_PASSWORD: password
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: setup go, lint and scan
uses: findy-network/setup-go-action@master
with:
linter-config-path: .golangci.yml
- name: test and measure coverage
run: make test_cov_out
- name: store coverage file
uses: actions/upload-artifact@v4
with:
name: ${{ github.sha }}-coverage.txt
path: ./coverage.txt
retention-days: 1
services:
postgres:
image: postgres:13.13-alpine
ports:
- 5433:5432
env:
POSTGRES_PASSWORD: password
POSTGRES_DB: vault
e2e:
runs-on: ubuntu-latest
steps:
- name: test e2e flow
uses: findy-network/e2e-test-action@master
with:
service: "vault"
- uses: actions/setup-go@v5
with:
go-version-file: "./go.mod"
- name: convert coverage to txt
run: go tool covdata textfmt -i=coverage -o coverage-e2e.txt
- name: store coverage file
uses: actions/upload-artifact@v4
with:
name: ${{ github.sha }}-coverage-e2e.txt
path: ./coverage-e2e.txt
retention-days: 1
upload-coverage:
runs-on: ubuntu-latest
needs: [test, e2e]
steps:
- name: checkout
uses: actions/checkout@v4
- name: download coverage file
uses: actions/download-artifact@v4
with:
name: ${{ github.sha }}-coverage.txt
- name: download coverage file
uses: actions/download-artifact@v4
with:
name: ${{ github.sha }}-coverage-e2e.txt
- name: upload coverage
uses: codecov/codecov-action@v4
with:
files: ./coverage.txt,./coverage-e2e.txt
fail_ci_if_error: ${{ github.ref_name != 'dev' }}
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}