iris/.github/scripts/setup_examples_test.bash

13 lines
329 B
Bash
Raw Normal View History

2021-02-19 07:49:15 +01:00
#!/usr/bin/env bash
2021-02-19 07:54:32 +01:00
for f in ../../_examples/*; do
2021-02-19 07:49:15 +01:00
if [ -d "$f" ]; then
# Will not run if no directories are available
go mod init
2023-08-20 02:12:46 +02:00
go get -u github.com/kataras/iris/v12@main
2021-02-19 07:49:15 +01:00
go mod download
go run .
fi
done
# git update-index --chmod=+x ./.github/scripts/setup_examples_test.bash