Skip to content

Commit

Permalink
Merge pull request #20 from tsandrini/v1
Browse files Browse the repository at this point in the history
Unit Tests & Logging
  • Loading branch information
tsandrini authored Aug 1, 2024
2 parents dba4ae7 + d4fcc4e commit f22cc18
Show file tree
Hide file tree
Showing 22 changed files with 1,566 additions and 151 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/cachix-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:

- name: "Installing and configuring the nix package manager..."
uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: |
accept-flake-config = true
- name: "Setting up magic-nix-cache..."
uses: DeterminateSystems/magic-nix-cache-action@main
Expand All @@ -26,9 +29,13 @@ jobs:
name: tsandrini
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

- name: "Building project packages..."
run: nix build
# NOTE Install any necessary packages here
- name: "Setting up packages..."
run: |
nix profile install nixpkgs#nix-fast-build # parallel nix builder
- name: "Building project devshells..."
run: nix develop --command echo OK
- name: "Building project packages..."
run: nix-fast-build --skip-cached --no-nom --flake ".#packages"

- name: "Building project devShells..."
run: nix-fast-build --skip-cached --no-nom --flake ".#devShells"
13 changes: 12 additions & 1 deletion .github/workflows/flake-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,23 @@ jobs:

- name: "Installing and configuring the nix package manager..."
uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: |
accept-flake-config = true
- name: "Setting up magic-nix-cache..."
uses: DeterminateSystems/magic-nix-cache-action@main

# NOTE Install any necessary packages here
- name: "Setting up packages..."
run: |
nix profile install nixpkgs#nix-fast-build # parallel nix builder
- name: "Running `nix flake check`..."
run: nix flake check --show-trace --accept-flake-config
run: nix-fast-build --skip-cached --no-nom

- name: "Running `nix build ...`..."
run: nix-fast-build --skip-cached --no-nom --flake ".#packages"

- name: "Checking flake inputs for stale & insecure nixpkgs versions..."
uses: DeterminateSystems/flake-checker-action@main
3 changes: 3 additions & 0 deletions .github/workflows/flakehub-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:

- name: "Installing and configuring the nix package manager..."
uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: |
accept-flake-config = true
- name: "Setting up magic-nix-cache..."
uses: DeterminateSystems/magic-nix-cache-action@main
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/update-flake-lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:

- name: "Installing and configuring the nix package manager..."
uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: |
accept-flake-config = true
- name: "Setting up magic-nix-cache..."
uses: DeterminateSystems/magic-nix-cache-action@main
Expand Down
Loading

0 comments on commit f22cc18

Please sign in to comment.