summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorRuss Allbery <rra@cpan.org>2020-02-29 18:57:29 -0800
committerRuss Allbery <rra@cpan.org>2020-02-29 18:57:29 -0800
commite29fa15efc78d4302c28b045e78cdf03c25bf3f2 (patch)
tree5a26296af905af024015f4e052cdc20617d1a867 /.github
parent91cdae358e0fd614fae3edd42697ec86bc515590 (diff)
Add support for GitHub Actions workflows
Change the vcs.travis metadata key to vcs.status.travis. This will require changes to all templates and package metadata.json files that use this key. Add support for generating a build status badge from a GitHub Actions workflow. To do this, set vcs.status.workflow to the name of the workflow that should be referenced for the badge. Also specify DocKnot's dependencies with a cpanfile. This makes it easier to install its dependencies with some tools, such as cpm.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yaml44
1 files changed, 44 insertions, 0 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
new file mode 100644
index 0000000..79fcac7
--- /dev/null
+++ b/.github/workflows/build.yaml
@@ -0,0 +1,44 @@
+name: build
+
+on:
+ push:
+ branches-ignore:
+ - "debian/**"
+ - "pristine-tar"
+ - "ubuntu/**"
+ - "upstream/**"
+ tags:
+ - "release/*"
+ pull_request:
+ branches:
+ - master
+
+jobs:
+ perl:
+ env:
+ AUTHOR_TESTING: 1
+
+ runs-on: ubuntu-latest
+
+ strategy:
+ fail-fast: false
+ matrix:
+ perl-version:
+ - "5.30"
+ - "5.28"
+ - "5.26"
+ - "5.24"
+
+ container:
+ image: perldocker/perl-tester:${{ matrix.perl-version }}
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: perl -V
+ run: perl -V
+ - name: Install Dependencies
+ run: cpm install -g --show-build-log-on-failure
+ - name: Makefile.PL
+ run: perl Makefile.PL
+ - name: make test
+ run: make test