mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-06 00:39:44 +01:00
Migrate from travis-ci.,org to github actions
Kudos to Mikel, see PR #1909
This commit is contained in:
parent
f7b29cac99
commit
7b9a6e334d
26
.github/workflows/test.yml
vendored
Normal file
26
.github/workflows/test.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
name: testssl.sh CI
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: ['ubuntu-latest']
|
||||||
|
perl: [ '5.30', '5.26' ]
|
||||||
|
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
|
||||||
|
- name: Install deps
|
||||||
|
run: sudo apt install dnsutils jsonlint
|
||||||
|
- run: cpanm --notest Test::More
|
||||||
|
- run: cpanm --notest Data::Dumper
|
||||||
|
- run: cpanm --notest JSON
|
||||||
|
- run: cpanm --notest Text::Diff
|
||||||
|
- run: prove -v
|
23
.travis.yml
23
.travis.yml
@ -1,23 +0,0 @@
|
|||||||
language: perl
|
|
||||||
perl:
|
|
||||||
- "5.26"
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
packages:
|
|
||||||
- dnsutils
|
|
||||||
- jsonlint
|
|
||||||
before_install:
|
|
||||||
- |
|
|
||||||
echo "Checking if a CI run is needed post commit: ${TRAVIS_COMMIT_RANGE}"
|
|
||||||
if ! git diff --name-only ${TRAVIS_COMMIT_RANGE} | grep -qvE '(\.md$)|(\.pem$)|(\.pdf$)|(\.html$)|^(LICENSE)|^(docs)|^(utils)|^(bin)|(Dockerfile)'
|
|
||||||
then
|
|
||||||
echo "No code was updated, not running the CI."
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
install:
|
|
||||||
- cpanm --notest Test::More
|
|
||||||
- cpanm --notest Data::Dumper
|
|
||||||
- cpanm --notest JSON
|
|
||||||
# - cpanm JSON::Validator
|
|
||||||
script:
|
|
||||||
- prove -v
|
|
Loading…
Reference in New Issue
Block a user