Add GitHub Actions for testing generate.pl
Test using GitHub Actions for this repo.
This commit is contained in:
parent
61f3aae15f
commit
daa1556bfd
1 changed files with 31 additions and 0 deletions
31
.github/workflows/generate-dockerfiles-patches.yml
vendored
Normal file
31
.github/workflows/generate-dockerfiles-patches.yml
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
name: Generate Dockerfiles/patches
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '*'
|
||||
tags-ignore:
|
||||
- '*'
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
generate:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set up git user name and email
|
||||
run: |
|
||||
git config --global user.email "test@github-actions"
|
||||
git config --global user.name "GitHub Actions"
|
||||
- uses: actions/checkout@master
|
||||
- name: Install system perl and cpanm
|
||||
run: |
|
||||
sudo apt-get install --no-install-recommends -y perl cpanminus
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
cpanm --quiet --installdeps --notest -L local .
|
||||
- name: Generate Dockerfiles/patches
|
||||
run: |
|
||||
perl -Ilocal/lib/perl5 ./generate.pl
|
||||
- name: Show diffstat (if any)
|
||||
run: |
|
||||
git --no-pager diff --stat HEAD
|
Loading…
Add table
Reference in a new issue