Skip to content

Commit 0e4b44a

Browse files
committed
Switch testing library and improve documentation
1 parent a1fd90f commit 0e4b44a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1366
-794
lines changed

.github/dependabot.yml

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

.github/renovate.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:best-practices",
5+
"config:semverAllMonthly"
6+
],
7+
"nix": {
8+
"enabled": true
9+
}
10+
}

.github/workflows/ci.yml

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

.github/workflows/quality.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
---
2+
name: "Quality"
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
jobs:
9+
check-quality:
10+
permissions:
11+
actions: "write"
12+
runs-on: "ubuntu-latest"
13+
steps:
14+
# setup
15+
- uses: "nixbuild/nix-quick-install-action@5bb6a3b3abe66fd09bbf250dce8ada94f856a703" # v30
16+
- uses: "actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # v4
17+
- uses: "nix-community/cache-nix-action@c448f065ba14308da81de769632ca67a3ce67cf5" # v6
18+
with:
19+
primary-key: "cache-nix-store-${{ runner.os }}-${{ hashFiles('flake.nix', 'flake.lock') }}"
20+
restore-prefixes-first-match: "cache-nix-store-${{ runner.os }}-"
21+
gc-max-store-size-linux: 1073741824 # 1go
22+
purge: true
23+
purge-prefixes: "cache-nix-store-${{ runner.os }}-"
24+
purge-created: 0
25+
purge-primary-key: "never"
26+
- uses: "cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad" # v16
27+
with:
28+
name: "krostar"
29+
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
30+
- name: "Print nix version"
31+
run: "nix --version"
32+
- name: "Print flake metadata"
33+
run: "nix flake metadata"
34+
- name: "Setup shell"
35+
run: "nix develop --command true"
36+
37+
# tests
38+
- uses: "DeterminateSystems/flake-checker-action@078f5f7f47ee188aa6cb472527ca5984e195222d" # v9
39+
with:
40+
fail-mode: true
41+
ignore-missing-flake-lock: false
42+
nixpkgs-keys: "nixpkgs"
43+
send-statistics: false
44+
45+
- name: "Flake check"
46+
run: "nix flake check --all-systems --print-build-logs"
47+
48+
- name: "Files respect Editorconfig configuration"
49+
run: "nix develop --command lint-editorconfig"
50+
51+
- name: "Files respect treefmt format"
52+
run: "nix develop --command treefmt --no-cache --fail-on-change"
53+
54+
- name: "Lint Github Actions"
55+
run: "nix develop --command lint-ghaction"
56+
57+
- name: "Lint Shell scripts"
58+
run: "nix develop --command lint-sh"
59+
60+
- name: "Lint YAML configurations files"
61+
run: "nix develop --command lint-yaml"
62+
63+
- name: "Lint Go code"
64+
run: "nix develop --command lint-go"
65+
66+
- name: "Lint Nix code"
67+
run: "nix develop --command lint-nix"
68+
69+
- name: "Run go unit tests"
70+
run: "nix develop --command go test -v -race -count 10 -failfast -timeout 45s -shuffle on ./..."

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
/result
33

44
# nixago: ignore-linked-files
5+
/.idea/watcherTasks.xml
56
/.editorconfig

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2023 github.com/krostar
3+
Copyright (c) 2025 github.com/krostar
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

0 commit comments

Comments
 (0)