Modular, context-aware and aspect-oriented dendritic Nix configurations. Discussions: https://oeiuwq.zulipchat.com/join/nqp26cd4kngon6mo3ncgnuap/ den.oeiuwq.com
configurations den dendritic nix aspect oriented
8
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(ci): Add Docs build at CI (#270)

This is to prevent accepting PR that break the site build.

Fixes #269

authored by

Victor Borja and committed by
GitHub
edaa0b03 07056357

+39 -11
+26
.github/workflows/docs.yml
··· 1 + name: Docs 2 + on: 3 + push: 4 + branches: ["!main"] 5 + paths: [ "docs/**" ] 6 + pull_request: 7 + types: [labeled, opened, synchronize, reopened, review_requested, ready_for_review] 8 + paths: [ "docs/**" ] 9 + pull_request_review: 10 + types: [submitted] 11 + concurrency: 12 + group: "docs" 13 + cancel-in-progress: true 14 + jobs: 15 + build: 16 + runs-on: ubuntu-latest 17 + steps: 18 + - uses: actions/checkout@v6 19 + - uses: pnpm/action-setup@v4 20 + with: 21 + version: latest 22 + - name: Build 23 + run: | 24 + pushd docs 25 + pnpm install 26 + pnpm run build
+2 -2
.github/workflows/gh-pages.yml
··· 18 18 url: ${{ steps.deployment.outputs.page_url }} 19 19 runs-on: ubuntu-latest 20 20 steps: 21 - - uses: actions/checkout@v4 21 + - uses: actions/checkout@v6 22 22 - uses: pnpm/action-setup@v4 23 23 with: 24 - version: 10 24 + version: latest 25 25 - name: Build 26 26 run: | 27 27 pushd docs
+9 -7
.github/workflows/test.yml
··· 1 1 on: 2 2 push: 3 3 branches: [main] 4 + paths: [ "**/*.nix" ] 4 5 pull_request: 5 6 types: [labeled, opened, synchronize, reopened, review_requested, ready_for_review] 7 + paths: [ "**/*.nix" ] 6 8 pull_request_review: 7 9 types: [submitted] 8 10 concurrency: ··· 13 15 runs-on: ubuntu-latest 14 16 if: ${{github.ref == 'refs/heads/main' || github.event.pull_request.draft == false}} 15 17 steps: 16 - - uses: actions/checkout@v4 18 + - uses: actions/checkout@v6 17 19 - run: | 18 20 git fetch --depth 1 origin refs/heads/main 19 21 test "refs/heads/main" == "${{github.ref}}" || (git diff --name-only origin/main..${{ github.sha }} -- | grep '.nix') ··· 25 27 name: Tests ${{matrix.os}} 26 28 runs-on: ${{matrix.os}} 27 29 steps: 28 - - uses: wimpysworld/nothing-but-nix@main 30 + - uses: wimpysworld/nothing-but-nix@v10 29 31 - uses: cachix/install-nix-action@v31 30 32 - uses: DeterminateSystems/magic-nix-cache-action@v13 31 33 - run: nix flake init -t github:$GITHUB_REPOSITORY/$GITHUB_SHA#ci ··· 62 64 name: noflake 63 65 runs-on: ubuntu-latest 64 66 steps: 65 - - uses: wimpysworld/nothing-but-nix@main 67 + - uses: wimpysworld/nothing-but-nix@v10 66 68 - uses: cachix/install-nix-action@v31 67 69 - uses: DeterminateSystems/magic-nix-cache-action@v13 68 - - uses: actions/checkout@v4 70 + - uses: actions/checkout@v6 69 71 - run: sed -i 's@# den.outPath@den.outPath@' templates/noflake/default.nix 70 72 - run: | 71 73 cat <<-EOF > templates/noflake/modules/ci-runtime.nix ··· 84 86 name: Check template ${{matrix.template}} ${{matrix.os}} 85 87 runs-on: ${{matrix.os}} 86 88 steps: 87 - - uses: wimpysworld/nothing-but-nix@main 89 + - uses: wimpysworld/nothing-but-nix@v10 88 90 - uses: cachix/install-nix-action@v31 89 91 - uses: DeterminateSystems/magic-nix-cache-action@v13 90 - - uses: actions/checkout@v4 92 + - uses: actions/checkout@v6 91 93 - run: | 92 94 cat <<-EOF > templates/${{matrix.template}}/modules/ci-runtime.nix 93 95 { ··· 106 108 name: Check template ${{matrix.template}} ${{matrix.os}} 107 109 runs-on: ${{matrix.os}} 108 110 steps: 109 - - uses: wimpysworld/nothing-but-nix@main 111 + - uses: wimpysworld/nothing-but-nix@v10 110 112 if: matrix.os == 'ubuntu-latest' 111 113 - uses: cachix/install-nix-action@v31 112 114 # - uses: DeterminateSystems/magic-nix-cache-action@v13
+2 -2
docs/src/content/docs/guides/from-zero-to-den.mdx
··· 248 248 249 249 10. Include re-usable `{host, user}` batteries. 250 250 251 - Batteries like [`den.provides.primary-user`](https://github.com/vic/den/blob/main/modules/aspects/provides/primary-user.nix) take the `{host, user}` context where `host` is the `igloo` definition and `user` is the `tux` definition. 251 + Batteries like [`den.provides.primary-user`](https://github.com/vic/den/blob/main/modules/aspects/provides/primary-user.nix) take the `{host, user}` context where `host` is the `igloo` definition and `user` is the `tux` definition. 252 252 253 - These batteries also serve as example for you to create custom re-usable pieces of configuration shareable on several user/hosts or shared with the community. 253 + These batteries also serve as example for you to create custom re-usable pieces of configuration shareable on several user/hosts or shared with the community. 254 254 255 255 </Steps> 256 256