-
Notifications
You must be signed in to change notification settings - Fork 62
73 lines (66 loc) · 1.88 KB
/
glpi-agent-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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: GLPI Agent CI
on: [push]
jobs:
linux-ubuntu-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install cpanminus
run: |
sudo apt -y install cpanminus libmodule-install-perl
- name: Check environment
run: |
perl --version
cpanm --version
- name: Install deps
run: |
cpanm --sudo --installdeps --verbose --notest .
cpanm --sudo --verbose --notest Parse::EDID
cpanm --sudo --verbose --notest Test::Perl::Critic Test::Vars Test::Pod Test::Pod::Spelling::CommonMistakes Test::Whitespaces Test::CPAN::Meta
- name: Run make
run: |
perl Makefile.PL
make manifest
make
- name: Run tests
run: |
make test
- name: Run Author tests
run: |
make test TEST_AUTHOR=1 TEST_FILES="t/02critic.t t/03var.t t/04pod-syntax.t t/06pod-spelling.t t/07whitespaces.t t/09cpanmeta.t"
windows-test:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Update environment
run: |
echo '::add-path::C:\Strawberry\perl\bin'
echo '::add-path::C:\Strawberry\perl\site\bin'
echo '::add-path::C:\Strawberry\c\bin'
shell: bash
- name: Check environment
run: |
echo "PATH=%PATH%"
perl --version
perl -V
shell: cmd
- name: Install Module::Install
run: cpan -T Module::Install
shell: cmd
- name: Install deps
run: |
cpanm --notest --verbose --installdeps .
shell: cmd
- name: Install other modules
run: |
cpanm --notest --verbose Compress::Zlib Parse::EDID Archive::Extract Win32::Unicode::File
shell: cmd
- name: Prepare Makefile
run: perl Makefile.PL
shell: cmd
- name: Run gmake
run: gmake
shell: cmd
- name: Run tests
run: gmake test
shell: cmd