Skip to content

test: cover internal/config (30.4% -> 100%) (#105) #248

test: cover internal/config (30.4% -> 100%) (#105)

test: cover internal/config (30.4% -> 100%) (#105) #248

Workflow file for this run

name: Go
on:
push:
branches: [ "main", "dev" ]
pull_request:
branches: [ "main", "dev" ]
jobs:
unit:
name: Build & Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- name: Build
run: go build -v ./...
- name: Test
run: go test -v -coverprofile=coverage.out -covermode=atomic ./...
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unit
integration:
name: Integration Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- name: Install psql client
run: sudo apt-get install -y postgresql-client
- name: Integration Tests
run: go test -tags integration -v -timeout 10m -coverprofile=coverage.out -covermode=atomic ./internal/process/ ./internal/db/ ./internal/importer/
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: integration