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 643b6e4
Show file tree
Hide file tree
Showing 4 changed files with 29 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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
my rrd statistic scripts
========================

[![Build status](https://github.com/mmitch/rrd/workflows/tests/badge.svg?branch=master)](https://github.com/mmitch/rrd/actions?query=workflow%3Atests)
[![GPL 3+](https://img.shields.io/badge/license-GPL%203%2B-blue.svg)](http://www.gnu.org/licenses/gpl-3.0-standalone.html)

This is a collection of scripts that draw some nice graphs with
Expand Down

0 comments on commit 643b6e4

Please sign in to comment.