Skip to content

Integration tests with proxy #578

Integration tests with proxy

Integration tests with proxy #578

name: Integration tests with proxy
on:
push:
branches:
- $default-branch
- development
- master
paths-ignore:
- varia/**
- '**.md'
- utils/prepare_rpm.sh
- .github/workflows/publish.yml
schedule:
# We run the integration tests daily. These tests depend on external hosts and certificates
# and it's useful to know when something is not working as soon as possible
#
# * is a special character in YAML so you have to quote this string
- cron: '42 7 * * *'
# Run tests for any PRs
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
##############################################################################
# macOS
macos:
name: Running integration tests on ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-12
- macos-13
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: Git clone repository
uses: actions/checkout@v4
- name: Install shellcheck
run: brew install shellcheck shunit2 bash-completion nmap tinyproxy
- name: install cpanm and Date::Parse
uses: perl-actions/install-with-cpanm@stable
with:
install: Date::Parse
- name: Run the integration tests
run: |
uname -a \
&& make integration_tests \
&& bash -c "source ./check_ssl_cert.completion && complete -p check_ssl_cert" \
&& make dist \
&& sudo make install_bash_completion && bash -c "source ./check_ssl_cert.completion && complete -p check_ssl_cert" \
&& if command -v shellcheck > /dev/null 2>&1 ; then shellcheck ./check_ssl_cert test/*.sh ; fi