forked from os-autoinst/os-autoinst-distri-opensuse
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (43 loc) · 1.41 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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@v3
- 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', '== 20230912';" >> 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