-
Notifications
You must be signed in to change notification settings - Fork 13
56 lines (44 loc) · 1.26 KB
/
server.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
name: Server CI
on:
push:
branches: [master]
tags: '**'
paths:
- 'server/**'
- '.github/workflows/server.yml'
pull_request:
branches: [master]
paths:
- 'server/**'
- '.github/workflows/server.yml'
workflow_dispatch:
defaults:
run:
working-directory: 'server'
jobs:
build_test_deploy:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest']
perl: ['5.40', '5.38', '5.36', '5.34', '5.32', '5.30', '5.28', '5.26']
name: Perl ${{ matrix.perl }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: shogo82148/[email protected]
with:
perl-version: ${{ matrix.perl }}
install-modules-with: cpanm
install-modules: CPAN::Uploader
working-directory: server
- name: Create Makefile
run: perl Makefile.PL
- name: Make module
run: make
- name: Run tests
run: make test
- name: Build distribution
run: make dist
- name: Publish to CPAN
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest' && matrix.perl == '5.40' }}
run: cpan-upload -u mreisner -p '${{ secrets.PAUSE_PASSWORD }}' PLS*.tar.gz