Skip to content

Commit

Permalink
Add CI Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rufferson committed Oct 30, 2020
1 parent 0c7188b commit e366268
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/main.yml
@@ -0,0 +1,37 @@
name: Simple CI

on:
push:
pull_request:

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-16.04
- ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v2
- name: Install mandatory prereqs
run: sudo apt update -qy && sudo apt install -qy libdanga-socket-perl liblog-log4perl-perl libxml-libxml-perl libunicode-stringprep-perl libnet-dns-perl
- name: Install test and plugin prereqs
run: sudo apt install -qy make libtest-sharedfork-perl libtest-tcp-perl libdbd-sqlite3-perl libfile-slurp-perl libcgi-fast-perl nginx
- name: Bootstrap
run: perl Makefile.PL
- name: Checkout parent repo
uses: actions/checkout@v2
with:
repository: djabberd/DJabberd
ref: master
path: djabberd
- name: Install DJabberd
run: cd djabberd && perl Makefile.PL && make && sudo make install && cd ..
- name: Build
run: make
- name: Test
run: make test

1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -5,5 +5,6 @@ pm_to_blib
*~
.*
!.gitignore
!.github
build-stamp
install-stamp

0 comments on commit e366268

Please sign in to comment.