Skip to content

Allow matching for multiple valid connectivity states #11

Allow matching for multiple valid connectivity states

Allow matching for multiple valid connectivity states #11

Workflow file for this run

name: ci
# yamllint disable-line rule:truthy
on: [push, pull_request]
jobs:
static:
runs-on: ubuntu-latest
name: "CI: Running ${{ matrix.test }} tests with perl v${{ matrix.perl-version }}"
strategy:
matrix:
include:
- test: static
perl-version: 5.32
- test: unit
perl-version: 5.32
- test: compile
perl-version: 5.26
container:
image: perldocker/perl-tester:${{ matrix.perl-version }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
apt-get -y update
apt-get -y install libdbus-1-dev libssh2-1-dev parallel python3-dev python3-yaml python3-jsonschema python3-pip
pip3 install yamllint
- name: Setup perl
env:
INLINE_PYTHON_EXECUTABLE: /usr/bin/python3
run: |
# Prefix with space to bypass ./tools/update_spec
echo " requires 'Code::DRY';" >> cpanfile
echo " requires 'Date::Parse';" >> cpanfile
echo " requires 'Regexp::Common';" >> cpanfile
echo " requires 'Perl::Tidy', '== 20240511';" >> cpanfile
make prepare
- name: Run ${{ matrix.test }} tests
env:
TESTS: ${{ matrix.test }}
run: |
# Work around https://github.com/actions/checkout/issues/766
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git fetch origin master
make test