Skip to content

Commit daa1556

Browse files
committed
Add GitHub Actions for testing generate.pl
Test using GitHub Actions for this repo.
1 parent 61f3aae commit daa1556

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Generate Dockerfiles/patches
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
tags-ignore:
8+
- '*'
9+
pull_request:
10+
11+
jobs:
12+
generate:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Set up git user name and email
16+
run: |
17+
git config --global user.email "test@github-actions"
18+
git config --global user.name "GitHub Actions"
19+
- uses: actions/checkout@master
20+
- name: Install system perl and cpanm
21+
run: |
22+
sudo apt-get install --no-install-recommends -y perl cpanminus
23+
- name: Install dependencies
24+
run: |
25+
cpanm --quiet --installdeps --notest -L local .
26+
- name: Generate Dockerfiles/patches
27+
run: |
28+
perl -Ilocal/lib/perl5 ./generate.pl
29+
- name: Show diffstat (if any)
30+
run: |
31+
git --no-pager diff --stat HEAD

0 commit comments

Comments
 (0)