es-entity 0.12.17

Event Sourcing Entity Framework
Documentation
#! Auto synced from Shared CI Resources repository
#! Don't change this file, instead change it in github.com/GaloyMoney/concourse-shared

name: Check Code

on:
  pull_request:
    branches: [main]

jobs:
  check-code:
    name: Check Code
    runs-on: ubuntu-latest
    steps:
      - name: Install Nix
        uses: DeterminateSystems/nix-installer-action@v4
      - name: Run the Magic Nix Cache
        uses: DeterminateSystems/magic-nix-cache-action@v8
      - uses: actions/checkout@v4
      - name: Run check code
        run: |
          check_code_command=$(make -s --no-print-directory -n check-code)
          if [[ "$check_code_command" == "nix flake check" ]]; then
            echo "check-code only runs nix flake check; skipping the full dev shell"
            exec nix flake check
          fi

          exec nix develop -c make check-code