Skip to content

Commit 5e28b45

Browse files
committed
updates
1 parent 1c760e7 commit 5e28b45

20 files changed

Lines changed: 591 additions & 209 deletions

.dictionary.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
noice
2+
nd
3+
edn
4+
ags
5+
afterAll
6+
clientA

.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.direnv
2+
source-stubs
3+
.pre-commit-config.yaml
4+
.envrc

.envrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env bash
2+
use flake .

.github/dependabot.yaml

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/workflows/lint.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Lint
3+
4+
on:
5+
merge_group:
6+
pull_request:
7+
types: [opened, synchronize, reopened]
8+
workflow_dispatch:
9+
10+
jobs:
11+
# =====================================================================
12+
# Primary Lint job
13+
# =====================================================================
14+
lint:
15+
name: Lint
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
20+
- uses: cachix/install-nix-action@4e002c8ec80594ecd40e759629461e26c8abed15 # v31
21+
with:
22+
nix_path: nixpkgs=channel:nixos-unstable
23+
24+
- name: Run flake pre-commit hooks
25+
run: nix develop -c pre-commit run --all-files

.github/workflows/linting.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/workflows/spellcheck.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/test_build.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
name: Test Build
3+
4+
on:
5+
workflow_dispatch:
6+
pull_request:
7+
8+
jobs:
9+
test_build:
10+
name: Test Image Build
11+
uses: sdr-enthusiasts/common-github-workflows/.github/workflows/sdre.yml@main
12+
with:
13+
push_enabled: false
14+
ghcr_repo_owner: ${{ github.repository_owner }}
15+
ghcr_repo: ${{ github.repository }}
16+
docker_build_file: Dockerfile
17+
secrets:
18+
ghcr_token: ${{ secrets.GITHUB_TOKEN }}
19+
20+
require_test_build_success:
21+
name: Require test_build success
22+
runs-on: ubuntu-latest
23+
needs: [test_build]
24+
if: always()
25+
steps:
26+
- name: Fail if test_build did not succeed
27+
run: |
28+
echo "test_build result: ${{ needs.test_build.result }}"
29+
30+
if [ "${{ needs.test_build.result }}" != "success" ]; then
31+
echo "::error::test_build workflow did not fully succeed"
32+
exit 1
33+
fi
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
name: update-flakes
3+
4+
on:
5+
schedule:
6+
- cron: "0 5 * * 0"
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
13+
jobs:
14+
get-flake-inputs:
15+
name: Get Flake Inputs
16+
runs-on: ubuntu-latest
17+
outputs:
18+
flake-inputs: ${{ steps.get-flake-inputs.outputs.flake-inputs }}
19+
20+
steps:
21+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
22+
with:
23+
sparse-checkout: flake.lock
24+
persist-credentials: false
25+
26+
- id: get-flake-inputs
27+
run: |
28+
flake_inputs="$(jq -c '.nodes.root.inputs | {flake: keys}' flake.lock)"
29+
echo "flake-inputs=${flake_inputs}" >> "$GITHUB_OUTPUT"
30+
31+
update-flake:
32+
name: update-${{ matrix.flake }}
33+
runs-on: ubuntu-latest
34+
needs: get-flake-inputs
35+
36+
strategy:
37+
fail-fast: false
38+
matrix: ${{ fromJson(needs.get-flake-inputs.outputs.flake-inputs) }}
39+
40+
steps:
41+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
42+
with:
43+
token: ${{ secrets.GITHUB_TOKEN }}
44+
persist-credentials: false
45+
ref: main
46+
47+
- uses: DeterminateSystems/nix-installer-action@c5a866b6ab867e88becbed4467b93592bce69f8a # v21
48+
with:
49+
extra-conf: accept-flake-config = true
50+
51+
- name: Configure Git identity
52+
run: |
53+
git config --global user.email "noreply@github.com"
54+
git config --global user.name "github[bot]"
55+
56+
- uses: fredsystems/flake-update-action@76d4f6b1d4d924c9ff073075b685d96474fb87f2 # v3.0.4
57+
with:
58+
dependency: ${{ matrix.flake }}
59+
pull-request-token: ${{ secrets.PAT }}
60+
pull-request-author: github[bot] <noreply@github.com>
61+
delete-branch: true
62+
github-token: ${{ secrets.GITHUB_TOKEN }}
63+
pull-request-branch-prefix: update-
64+
automerge: true

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
.DS_Store
2+
.direnv
3+
.pre-commit-config.yaml

0 commit comments

Comments
 (0)