-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
68 changed files
with
1,503 additions
and
1,609 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
exclude_paths: | ||
- tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
--- | ||
name: Check Markdown links | ||
|
||
on: | ||
push: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
markdown-link-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: gaurav-nelson/github-action-markdown-link-check@v1 | ||
with: | ||
use-verbose-mode: 'yes' | ||
- uses: actions/checkout@v3 | ||
- uses: gaurav-nelson/github-action-markdown-link-check@v1 | ||
with: | ||
use-verbose-mode: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,85 +1,86 @@ | ||
name: Run tests against latest openSUSE Leap 15.4 | ||
--- | ||
name: Run tests against latest openSUSE Leap 15.5 | ||
|
||
on: | ||
on: | ||
push: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 13 * * 0' | ||
- cron: "0 13 * * 0" | ||
|
||
jobs: | ||
run-tests: | ||
runs-on: macos-12 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Download current box metadata needed for GitHub cache key | ||
run: | | ||
BOX_URL=$(cat tests/Vagrantfile | sed -n -E 's/.*config\.vm\.box_url = "([^"]*).*/\1/p') | ||
wget -O tests/opensuse.json "${BOX_URL}" | ||
- name: Download current box metadata needed for GitHub cache key | ||
run: | | ||
BOX_URL=$(cat tests/Vagrantfile | sed -n -E 's/.*config\.vm\.box_url = "([^"]*).*/\1/p') | ||
wget -O tests/opensuse.json "${BOX_URL}" | ||
- name: Cache Vagrant boxes | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.vagrant.d/boxes | ||
key: ${{ runner.os }}-vagrant-${{ hashFiles('tests/opensuse.json') }} | ||
|
||
- name: Show Vagrant version | ||
run: vagrant --version | ||
- name: Cache Vagrant boxes | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.vagrant.d/boxes | ||
key: ${{ runner.os }}-vagrant-${{ hashFiles('tests/opensuse.json') }} | ||
|
||
- name: Use Python 3.x | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' | ||
- name: Show Vagrant version | ||
run: vagrant --version | ||
|
||
- name: Install pipenv | ||
run: pip install pipenv | ||
- name: Use Python 3.x | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.x | ||
|
||
- name: Cache pipenv environment | ||
id: cache-pipenv | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.local/share/virtualenvs | ||
key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }} | ||
- name: Install pipenv | ||
run: pip install pipenv | ||
|
||
- name: Install required (and locked) dependecies with pipenv | ||
if: steps.cache-pipenv.outputs.cache-hit != 'true' | ||
run: pipenv install --dev | ||
- name: Cache pipenv environment | ||
id: cache-pipenv | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.local/share/virtualenvs | ||
key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }} | ||
|
||
# Setting env variables as "pipenv run make -j2 setup" doesn't terminate | ||
- name: Enable pipenv environment | ||
run: | | ||
echo "VIRTUAL_ENV=$(pipenv --venv)" >> $GITHUB_ENV | ||
echo "$(pipenv --venv)/bin" >> $GITHUB_PATH | ||
- name: Print environment variables | ||
run: export | ||
- name: Install required (and locked) dependecies with pipenv | ||
if: steps.cache-pipenv.outputs.cache-hit != 'true' | ||
run: pipenv install --dev | ||
|
||
- name: Ensure to use the latest boxes | ||
run: vagrant box update | ||
working-directory: tests | ||
# Setting env variables as "pipenv run make -j2 setup" doesn't terminate | ||
- name: Enable pipenv environment | ||
run: | | ||
echo "VIRTUAL_ENV=$(pipenv --venv)" >> $GITHUB_ENV | ||
echo "$(pipenv --venv)/bin" >> $GITHUB_PATH | ||
- name: Prepare Vagrant test environment | ||
run: make -j setup | ||
working-directory: tests | ||
|
||
- name: Run tests | ||
run: make -k tests | ||
working-directory: tests | ||
- name: Print environment variables | ||
run: export | ||
|
||
- name: Gather facts | ||
run: | | ||
pip list | ||
vagrant ssh -c "ip addr show" ns | ||
vagrant ssh -c "ip addr show" sut | ||
vagrant ssh -c "ip addr show" client | ||
vagrant ssh -c "ip addr show" mail-sink | ||
vagrant ssh -c "dig mydomain.test MX" client | ||
vagrant ssh -c "ping -c 3 192.168.56.10" client | ||
vagrant ssh -c "sudo journalctl --no-pager -n 50 -u named" ns | ||
vagrant ssh -c "systemctl --no-page list-units --type=service" sut | ||
vagrant ssh -c "sudo journalctl --no-pager -n 50 -u clamd" sut | ||
vagrant ssh -c "sudo journalctl --no-pager -n 50 -u postfix" sut | ||
vagrant ssh -c "sudo journalctl --no-pager -n 50 -u rspamd" sut | ||
vagrant ssh -c "sudo journalctl --no-pager -n 50 -u dovecot" sut | ||
working-directory: tests | ||
- name: Ensure to use the latest boxes | ||
run: vagrant box update | ||
working-directory: tests | ||
|
||
- name: Prepare Vagrant test environment | ||
run: make -j setup | ||
working-directory: tests | ||
|
||
- name: Run tests | ||
run: make -k tests | ||
working-directory: tests | ||
|
||
- name: Gather facts | ||
run: | | ||
pip list | ||
vagrant ssh -c "ip addr show" ns | ||
vagrant ssh -c "ip addr show" sut | ||
vagrant ssh -c "ip addr show" client | ||
vagrant ssh -c "ip addr show" mail-sink | ||
vagrant ssh -c "dig mydomain.test MX" client | ||
vagrant ssh -c "ping -c 3 192.168.56.10" client | ||
vagrant ssh -c "sudo journalctl --no-pager -n 50 -u named" ns | ||
vagrant ssh -c "systemctl --no-page list-units --type=service" sut | ||
vagrant ssh -c "sudo journalctl --no-pager -n 50 -u clamd" sut | ||
vagrant ssh -c "sudo journalctl --no-pager -n 50 -u postfix" sut | ||
vagrant ssh -c "sudo journalctl --no-pager -n 50 -u rspamd" sut | ||
vagrant ssh -c "sudo journalctl --no-pager -n 50 -u dovecot" sut | ||
working-directory: tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.