HASH e91fc0154305
DATE 2025-01-21
SUBJECT ci: consolidate check and format
FILES 2 CHANGED
HASH e91fc0154305
DATE 2025-01-21
SUBJECT ci: consolidate check and format
FILES 2 CHANGED
┌─ .github/workflows/check.yaml ─────────────────────────────────────────────┐
│ diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml │
│ index b35a02f..6ca7491 100644 │
│ --- a/.github/workflows/check.yaml │
│ +++ b/.github/workflows/check.yaml │
│ @@ -10,24 +10,33 @@ concurrency: │
│ group: ooknet-check-${{ github.ref }} │
│ cancel-in-progress: true │
│ jobs: │
│ - nix-flake-check: │
│ - name: Check Flake │
│ + check-format: │
│ + name: Check Formatting │
│ runs-on: ubuntu-latest │
│ steps: │
│ - - name: Checkout │
│ - uses: actions/checkout@v4 │
│ + - uses: actions/checkout@v4 │
│ + - uses: DeterminateSystems/nix-installer-action@main │
│ + - run: nix run nixpkgs#alejandra -- --check . │
│ │
│ - # Get access to kunzen │
│ - - name: Setup SSH │
│ - uses: webfactory/[email protected] │
│ + check-dead-code: │
│ + name: Check Dead Code │
│ + runs-on: ubuntu-latest │
│ + steps: │
│ + - uses: actions/checkout@v4 │
│ + - uses: cachix/cachix-action@v15 │
│ with: │
│ - ssh-private-key: ${{ secrets.KUNZEN_DEPLOY_KEY }} │
│ - │
│ - - name: Setup Nix │
│ - uses: DeterminateSystems/nix-installer-action@main │
│ + name: deadnix │
│ + - uses: astro/deadnix-action@main │
│ │
│ - - name: Magic Nix Cache │
│ - uses: DeterminateSystems/magic-nix-cache-action@main │
│ + check-flake: │
│ + name: Check Flake │
│ + runs-on: ubuntu-latest │
│ + steps: │
│ + - uses: actions/checkout@v4 │
│ + - uses: webfactory/[email protected] │
│ + with: │
│ + ssh-private-key: ${{ secrets.KUNZEN_DEPLOY_KEY }} │
│ + - uses: DeterminateSystems/nix-installer-action@main │
│ + - uses: DeterminateSystems/magic-nix-cache-action@main │
│ + - run: nix flake check │
│ │
│ - - name: Nix Flake │
│ - run: nix flake check │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ .github/workflows/check.yaml ───────┐
│ diff --git a/.github/workflows/check.yaml b/ │
│ .github/workflows/check.yaml │
│ index b35a02f..6ca7491 100644 │
│ --- a/.github/workflows/check.yaml │
│ +++ b/.github/workflows/check.yaml │
│ @@ -10,24 +10,33 @@ concurrency: │
│ group: ooknet-check-${{ github.ref }} │
│ cancel-in-progress: true │
│ jobs: │
│ - nix-flake-check: │
│ - name: Check Flake │
│ + check-format: │
│ + name: Check Formatting │
│ runs-on: ubuntu-latest │
│ steps: │
│ - - name: Checkout │
│ - uses: actions/checkout@v4 │
│ + - uses: actions/checkout@v4 │
│ + - uses: DeterminateSystems/nix-instal │
│ ler-action@main │
│ + - run: nix run nixpkgs#alejandra -- - │
│ -check . │
│ │
│ - # Get access to kunzen │
│ - - name: Setup SSH │
│ - uses: webfactory/[email protected] │
│ + check-dead-code: │
│ + name: Check Dead Code │
│ + runs-on: ubuntu-latest │
│ + steps: │
│ + - uses: actions/checkout@v4 │
│ + - uses: cachix/cachix-action@v15 │
│ with: │
│ - ssh-private-key: ${{ secrets.KUNZ │
│ EN_DEPLOY_KEY }} │
│ - │
│ - - name: Setup Nix │
│ - uses: DeterminateSystems/nix-instal │
│ ler-action@main │
│ + name: deadnix │
│ + - uses: astro/deadnix-action@main │
│ │
│ - - name: Magic Nix Cache │
│ - uses: DeterminateSystems/magic-nix- │
│ cache-action@main │
│ + check-flake: │
│ + name: Check Flake │
│ + runs-on: ubuntu-latest │
│ + steps: │
│ + - uses: actions/checkout@v4 │
│ + - uses: webfactory/[email protected] │
│ + with: │
│ + ssh-private-key: ${{ secrets.KUNZ │
│ EN_DEPLOY_KEY }} │
│ + - uses: DeterminateSystems/nix-instal │
│ ler-action@main │
│ + - uses: DeterminateSystems/magic-nix- │
│ cache-action@main │
│ + - run: nix flake check │
│ │
│ - - name: Nix Flake │
│ - run: nix flake check │
└──────────────────────────────────────────────┘
┌─ .github/workflows/format.yaml ────────────────────────────────────────────┐
│ diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml │
│ deleted file mode 100644 │
│ index 24f2b44..0000000 │
│ --- a/.github/workflows/format.yaml │
│ +++ /dev/null │
│ @@ -1,34 +0,0 @@ │
│ -name: "Format Flake" │
│ -on: │
│ - push: │
│ - branches: │
│ - - main │
│ - paths-ignore: │
│ - - .github/** │
│ - - .gitignore │
│ -jobs: │
│ - alejandra: │
│ - name: Format with Alejandra │
│ - runs-on: ubuntu-latest │
│ - steps: │
│ - - name: Checkout │
│ - uses: actions/checkout@v4 │
│ - - name: Setup Nix │
│ - uses: DeterminateSystems/nix-installer-action@main │
│ - - name: Nix Magic Cache │
│ - uses: DeterminateSystems/magic-nix-cache-action@main │
│ - - name: Format Flake │
│ - run: nix run nixpkgs#alejandra -- -c . │
│ - deadnix: │
│ - name: Dead Code Analysis with Deadnix │
│ - runs-on: ubuntu-latest │
│ - steps: │
│ - - name: Checkout │
│ - uses: actions/checkout@v4 │
│ - - name: Setup Nix │
│ - uses: DeterminateSystems/nix-installer-action@main │
│ - - name: Setup Deadnix │
│ - uses: cachix/cachix-action@v15 │
│ - with: │
│ - name: deadnix │
│ - - uses: astro/deadnix-action@main │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ .github/workflows/format.yaml ──────┐
│ diff --git a/.github/workflows/format.yaml b │
│ /.github/workflows/format.yaml │
│ deleted file mode 100644 │
│ index 24f2b44..0000000 │
│ --- a/.github/workflows/format.yaml │
│ +++ /dev/null │
│ @@ -1,34 +0,0 @@ │
│ -name: "Format Flake" │
│ -on: │
│ - push: │
│ - branches: │
│ - - main │
│ - paths-ignore: │
│ - - .github/** │
│ - - .gitignore │
│ -jobs: │
│ - alejandra: │
│ - name: Format with Alejandra │
│ - runs-on: ubuntu-latest │
│ - steps: │
│ - - name: Checkout │
│ - uses: actions/checkout@v4 │
│ - - name: Setup Nix │
│ - uses: DeterminateSystems/nix-instal │
│ ler-action@main │
│ - - name: Nix Magic Cache │
│ - uses: DeterminateSystems/magic-nix- │
│ cache-action@main │
│ - - name: Format Flake │
│ - run: nix run nixpkgs#alejandra -- - │
│ c . │
│ - deadnix: │
│ - name: Dead Code Analysis with Deadnix │
│ - runs-on: ubuntu-latest │
│ - steps: │
│ - - name: Checkout │
│ - uses: actions/checkout@v4 │
│ - - name: Setup Nix │
│ - uses: DeterminateSystems/nix-instal │
│ ler-action@main │
│ - - name: Setup Deadnix │
│ - uses: cachix/cachix-action@v15 │
│ - with: │
│ - name: deadnix │
│ - - uses: astro/deadnix-action@main │
└──────────────────────────────────────────────┘
[ BACK TO LOG ]
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET