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: |
| 36 | 36 | - run: ./zig-out/bin/zigmod zpm add apple_pie |
| 37 | 37 | - run: ./zig-out/bin/zigmod zpm tags |
| 38 | 38 | - 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: |
| 42 | 42 | - run: ./zig-out/bin/zigmod zpm tags |
| 43 | 43 | - run: ./zig-out/bin/zigmod aq add 1/vrischmann/sqlite |
| 44 | 44 | |
| 45 | - run: ./test_repo.sh https://github.com/nektro/zigmod-test-basic |
| 46 | |
| 45 | 47 | # Github Release |
| 46 | 48 | - run: ./changelog.sh |
| 47 | 49 | - run: ./make_release.sh ${{ secrets.GITHUB_TOKEN }} |
test_repo.sh created+13
| ... | ... | @@ -0,0 +1,13 @@ |
| 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | clone_url=$1 |
| 6 | clone_dir=$(mktemp -d) |
| 7 | |
| 8 | git clone $clone_url $clone_dir |
| 9 | cd $clone_dir |
| 10 | |
| 11 | zigmod fetch |
| 12 | |
| 13 | zig build test --summary all |
test_repo_all.sh created+5
| ... | ... | @@ -0,0 +1,5 @@ |
| 1 | #!/bin/sh |
| 2 | |
| 3 | set -ex |
| 4 | |
| 5 | ./test_repo.sh https://github.com/nektro/zigmod-test-basic |