-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (43 loc) · 1.06 KB
/
test.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
---
name: build and test
on:
push:
pull_request:
workflow_dispatch:
jobs:
build-job:
name: Build distribution
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: run Makefile.PL
run: perl Makefile.PL
- name: make manifest
run: make manifest
- name: build dist
run: make distdir DISTVNAME=build_dir
- uses: actions/upload-artifact@v4
with:
name: build_dir
path: build_dir
if-no-files-found: error
test-job:
needs: build-job
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
perl-version:
- "5.38"
name: perl ${{ matrix.perl-version }} on ${{ matrix.os }}
steps:
- name: set up perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl-version }}
- uses: actions/download-artifact@v4
with:
name: build_dir
- name: install deps using cpm
uses: perl-actions/install-with-cpm@v1
- run: prove -lr t