Skip to content

Commit

Permalink
move tests to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jvolkening committed Dec 8, 2023
1 parent bb42378 commit f0c3931
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 44 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: 'Build Docs'

on:
workflow_dispatch:
push:
branches:
- master

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: 'pages'
cancel-in-progress: true

defaults:
run:
shell: bash

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Build docs
run: ./make_docs.pl bin docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./docs
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to Pages
id: deployment
uses: actions/deploy-pages@v1
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: 'Unit Tests'

on:
push:
branches:
- master

linux:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
perl-version:
- '5.36'
- '5.16'

container:
image: perldocker/perl-tester:${{ matrix.perl-version }}

steps:
- uses: actions/checkout@main
with:
submodules: recursive
- run: perl -V
- run: cpanm --notest --installdeps --verbose .
- run: perl Build.PL
- run: ./Build
- run: prove -wlvmb t
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.*
!/.gitignore
!/.gitattributes
!/.travis.yml
!/.github
/Makefile
/Makefile.old
/blib/
Expand Down
43 changes: 0 additions & 43 deletions .travis.yml

This file was deleted.

0 comments on commit f0c3931

Please sign in to comment.