Skip to content

use dto and domain models for tiers + positions #243

use dto and domain models for tiers + positions

use dto and domain models for tiers + positions #243

Workflow file for this run

name: CI
on:
pull_request:
branches: ["main"]
jobs:
checks:
runs-on: ubuntu-latest
permissions:
contents: "read"
id-token: "write"
outputs:
source_code: ${{ steps.filter.outputs.source_code }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
source_code:
- "**/*.go"
- "**/*.sql"
- "go.mod"
- "go.sum"
- "Makefile"
- name: Install Nix
if: steps.filter.outputs.source_code == 'true'
uses: DeterminateSystems/nix-installer-action@main
- name: Format check
if: steps.filter.outputs.source_code == 'true'
run: nix develop .#ci -c bash -c "make fmt && git diff --exit-code"
- name: Check
if: steps.filter.outputs.source_code == 'true'
run: nix develop .#ci -c make check
- name: Sql check
if: steps.filter.outputs.source_code == 'true'
run: nix develop .#ci -c make check-sql
- name: Build
if: steps.filter.outputs.source_code == 'true'
run: nix develop .#ci -c make build
- name: Generated files check
if: steps.filter.outputs.source_code == 'true'
run: nix develop .#ci -c bash -c "make generate && git diff --exit-code"
- name: Test
if: steps.filter.outputs.source_code == 'true'
run: nix develop .#ci -c make test