Skip to content

Commit

Permalink
switch CI pipeline from TravisCI to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mmitch committed Dec 16, 2023
1 parent 2c7f07d commit b0dafe1
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 11 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/script-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: tests
on:
push:
pull_request:
types: [opened]
schedule:
- cron: '16 19 27 * *'

jobs:
test-scripts:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-latest']
perl: ['5.36']
name: Perl ${{ matrix.perl }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
- run: perl -V
- run: make ci-install-deps
- run: make test
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ clean:

test: test-perl test-bash

travis-install-deps: travis-install-perl-deps
ci-install-deps: ci-install-perl-deps

travis-install-perl-deps:
ci-install-perl-deps:
@grep ^use $(PERL_SOURCES) | awk '{print $$2}' | sed 's/;$$//' | egrep -v '^(strict|warnings)$$' | sort | uniq | while read MOD; do perl -Itest/ -M"$$MOD" -e '1;' 2>/dev/null || echo "$$MOD" ; done | cpanm --skip-satisfied

test-perl:
Expand Down

0 comments on commit b0dafe1

Please sign in to comment.