Compare commits

..

5 commits

Author SHA1 Message Date
64bdf1c48a testing a failing test
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2022-12-18 04:12:26 -08:00
08eec536a0 Testing a passing test
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-12-18 04:11:34 -08:00
4f96e752a8 dependencies
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2022-12-18 04:05:10 -08:00
19585a295d skip lfs
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2022-12-18 02:57:26 -08:00
9fd8effba6 Add .woodpecker.yml
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2022-12-18 02:23:16 -08:00
4 changed files with 6 additions and 21 deletions

View file

@ -6,22 +6,9 @@ clone:
lfs: false
pipeline:
zig-compiler:
image: alpine
- echo "Downloading dependencies..."
- apk add curl xz
- echo "Downloading zig binary..."
- curl https://ziglang.org/download/0.10.0/zig-linux-x86_64-0.10.0.tar.xz | xz -d | tar -x
format:
image: alpine
- echo "Checking formatting..."
- ./zig-linux-x86_64-0.10.0/zig fmt --check src/ tests/ build.zig
unit-tests:
image: alpine
commands:
- echo "Downloading dependencies..."
- apk add sqlite sqlite-dev libpq libpq-dev
- echo "Running unit tests..."
- ./zig-linux-x86_64-0.10.0/zig build unit
- apk add sqlite sqlite-dev libpq libpq-dev curl xz
- curl https://ziglang.org/download/0.10.0/zig-linux-x86_64-0.10.0.tar.xz | xz -d | tar -x
- ./zig-linux-x86_64-0.10.0/zig build unit:template

View file

@ -1,6 +1,4 @@
# fediglam
[![status-badge](https://ci.heartles.xyz/api/badges/heartles/fediglam/status.svg)](https://ci.heartles.xyz/heartles/fediglam)
A (soon to be federated) social networking server
# Untitled Social Network server
## Building
### Requirements

View file

@ -68,7 +68,7 @@ pub const Iter = struct {
/// + pub fn parse([]const u8) !F
///
/// Boolean Parameters:
/// The following query strings will all parse a `true` value for the
/// The following query strings will all parse a `true` value for the
/// parameter `foo: bool = false`:
/// - `?foo`
/// - `?foo=true`

View file

@ -1349,7 +1349,7 @@ test "template" {
try testCase("", .{}, "");
try testCase("abcd", .{}, "abcd");
try testCase("{.val}", .{ .val = 3 }, "3");
try testCase("{.v}", .{ .v = @as(usize, 3) }, "4");
try testCase("{#if .val}1{/if}", .{ .val = true }, "1");
try testCase("{#for .vals |$v|=} {$v} {=/for}", .{ .vals = [_]u8{ 1, 2, 3 } }, "123");
try testCase("{#for .vals |$val|}{$val}{/for}", .{ .vals = [_]u8{ 1, 2, 3 } }, "123");