Update README.md #138
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
name: Validate test suites | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * 6' | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get yamllint and wake-up the mirror endpoint | |
run: | | |
sudo apt-get install -y curl wget yamllint | |
curl --connect-timeout 600 -sk https://oshp-validator-mock.onrender.com | |
- name: Validate the venom tests suite file | |
run: | | |
yamllint --strict tests_suite.yml | |
- name: Get the latest release of venom | |
run: | | |
wget -q -O venom https://github.com/ovh/venom/releases/download/v1.0.1/venom.linux-amd64 | |
chmod +x venom | |
./venom update || true | |
./venom version | |
- name: Execute the test plan | |
run: | | |
./venom run --var="target_site=https://oshp-validator-mock.onrender.com" --var="internet_facing=true" --var="logout_url=/" tests_suite.yml | |
echo "[+] Venom log file content:" | |
cat venom.log | |