Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
cztomsik committed Mar 27, 2024
1 parent e378ec0 commit 6b889fe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,9 @@ pub fn build(b: *std.Build) !void {
},
});
}

const tests = b.addTest(.{ .root_source_file = .{ .path = "src/main.zig" } });
const run_tests = b.addRunArtifact(tests);
const test_step = b.step("test", "Run tests");
test_step.dependOn(&run_tests.step);
}
6 changes: 6 additions & 0 deletions src/main.zig
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const std = @import("std");

pub const SQLite3 = @import("sqlite.zig").SQLite3;
pub const Pool = @import("pool.zig").Pool;
pub const Session = @import("session.zig").Session;
Expand All @@ -9,3 +11,7 @@ pub const update = @import("dsl.zig").update;
pub const delete = @import("dsl.zig").delete;

pub const migrate = @import("migrate.zig").migrate;

test {
std.testing.refAllDecls(@This());
}

0 comments on commit 6b889fe

Please sign in to comment.