Actualiser .forgejo/workflows/ci.yaml
/ sync (push) Has been skipped Details
/ deploiement (push) Has been skipped Details
/ tests (push) Failing after 1s Details

This commit is contained in:
Adrien Bourmault 2023-11-30 17:56:32 +01:00
parent dd3667f6d2
commit 1e2ff6d69d
1 changed files with 4 additions and 1 deletions

View File

@ -11,17 +11,20 @@ jobs:
shell: bash
run: |
git clone ${{ gitea.server_url }}/${{ gitea.repository }} dns
echo "Cloned sucessfully from ${{ gitea.server_url }}/${{ gitea.repository }}"
- name: Test files
shell: bash
run: |
cd dns
files=$(git diff-tree --no-commit-id --name-only -r main | grep "*.zone")
echo "Have to test $files"
for file in $files
do
domain=$(echo $file | sed "s/.zone//g")
/usr/sbin/named-checkzone "$domain" "$file" || exit 2 && echo "Error on file $file"
/usr/sbin/named-checkzone "$domain" "$file" || echo "Error on file $file" && exit 2
done
echo $(git diff-tree --no-commit-id --name-only -r main | grep "*.zone") > /var/cache/bind/.modified
echo "Tested sucessfully"
sync:
runs-on: linux_amd64