refactor: restructure application context and service initialization #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a golang project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
name: Integrity Pipeline | |
on: | |
push: | |
branches: | |
- "**" | |
tags: | |
- v[0-9]+.[0-9]+.[0-9]+ | |
pull_request: | |
types: | |
- opened | |
- edited # in case of base branch change | |
- synchronize | |
# - reopened | |
# - ready_for_review | |
branches: | |
- "**" | |
# schedule: | |
# - cron: "18 21 * * 6" | |
# Allows you to run this workflow manually from the Actions tab on GitHub. | |
workflow_dispatch: | |
inputs: | |
create_release: | |
description: Create a release | |
required: false | |
type: boolean | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
integration: | |
name: Integration | |
runs-on: ${{ matrix.os }} | |
permissions: | |
contents: read # Needed to clone the repository | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
# - windows-latest | |
# - macOS-latest | |
golang-version: | |
- 1.23.5 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.x" | |
- name: Setup Golang ${{ matrix.golang-version }} | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.golang-version }} | |
cache: true | |
cache-dependency-path: go.sum | |
- name: Setup govulncheck | |
run: go install golang.org/x/vuln/cmd/govulncheck@latest | |
- name: Setup betteralign | |
run: go install github.com/dkorunic/betteralign/cmd/betteralign@latest | |
- name: Setup gcov2lcov | |
run: go install github.com/jandelgado/gcov2lcov@latest | |
- name: Run pre-commit | |
uses: pre-commit/[email protected] | |
- name: Build | |
working-directory: ./ | |
run: go build -v ./... |