Skip to content

build(deps): bump github.com/alecthomas/kong from 1.3.0 to 1.4.0 (#50) #109

build(deps): bump github.com/alecthomas/kong from 1.3.0 to 1.4.0 (#50)

build(deps): bump github.com/alecthomas/kong from 1.3.0 to 1.4.0 (#50) #109

Workflow file for this run

name: pr:golang-tests
on:
push:
tags:
- v*
branches:
- main
pull_request:
jobs:
golangci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: "1.23"
- name: lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
tests:
env:
# PG
POSTGRES_HOST: localhost
POSTGRES_PORT: 5432
POSTGRES_DATABASE: postgres
POSTGRES_USERNAME: test
POSTGRES_PASSWORD: test
# Service containers to run with `test`
services:
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres:15.1-alpine3.17
env:
POSTGRES_DB: postgres
POSTGRES_USER: test
POSTGRES_PASSWORD: test
# Set health checks to wait until postgres has started
options: >-
--health-cmd=pg_isready
--health-interval=100ms
--health-timeout=100ms
--health-retries=100
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: "1.23"
- name: Install Task
uses: arduino/setup-task@v2
with:
version: 3.x
- name: Init test DB
run: task init-test-db
- name: Run tests
run: task test
coverage:
env:
# PG
POSTGRES_HOST: localhost
POSTGRES_PORT: 5432
POSTGRES_DATABASE: postgres
POSTGRES_USERNAME: test
POSTGRES_PASSWORD: test
# Service containers to run with `test`
services:
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres:15.1-alpine3.17
env:
POSTGRES_DB: postgres
POSTGRES_USER: test
POSTGRES_PASSWORD: test
# Set health checks to wait until postgres has started
options: >-
--health-cmd=pg_isready
--health-interval=100ms
--health-timeout=100ms
--health-retries=100
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: actions/setup-go@v5
with:
go-version: '1.23'
- name: Install Task
uses: arduino/setup-task@v2
with:
version: 3.x
- name: Run coverage
run: task coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}