authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2024-08-18 02:53:03 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2024-08-18 02:53:03 -07:00
log1b86e37a909882a2dede42f083dfb6fdbaa80cf8
treebbfed2c02255e1aa6b0ae0ad6eb46455cbcd5687
parentc395aa3b4af02250f87d91312a6da874cbdca29c

ci: add test_repo script for more e2e testing


4 files changed, 22 insertions(+), 0 deletions(-)

.github/workflows/nightly.yml+2
......@@ -36,3 +36,5 @@ jobs:
3636 - run: ./zig-out/bin/zigmod zpm add apple_pie
3737 - run: ./zig-out/bin/zigmod zpm tags
3838 - run: ./zig-out/bin/zigmod aq add 1/vrischmann/sqlite
39
40 - run: ./test_repo.sh https://github.com/nektro/zigmod-test-basic
.github/workflows/push.yml+2
......@@ -42,6 +42,8 @@ jobs:
4242 - run: ./zig-out/bin/zigmod zpm tags
4343 - run: ./zig-out/bin/zigmod aq add 1/vrischmann/sqlite
4444
45 - run: ./test_repo.sh https://github.com/nektro/zigmod-test-basic
46
4547 # Github Release
4648 - run: ./changelog.sh
4749 - run: ./make_release.sh ${{ secrets.GITHUB_TOKEN }}
test_repo.sh created+13
......@@ -0,0 +1,13 @@
1#!/bin/sh
2
3set -e
4
5clone_url=$1
6clone_dir=$(mktemp -d)
7
8git clone $clone_url $clone_dir
9cd $clone_dir
10
11zigmod fetch
12
13zig build test --summary all
test_repo_all.sh created+5
......@@ -0,0 +1,5 @@
1#!/bin/sh
2
3set -ex
4
5./test_repo.sh https://github.com/nektro/zigmod-test-basic