2020-10-21 00:33:27 +08:00
|
|
|
name: Basic tests
|
|
|
|
|
2020-11-01 20:08:14 +08:00
|
|
|
on: [push, pull_request]
|
2020-10-21 00:33:27 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
name: perlcritic, perltidy & shellcheck
|
2020-11-23 05:05:45 +08:00
|
|
|
runs-on: ubuntu-20.04
|
2020-10-21 00:33:27 +08:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: install prerequisites
|
|
|
|
run: sudo apt update && sudo apt install -y shellcheck libperl-critic-perl perltidy
|
|
|
|
env:
|
|
|
|
DEBIAN_FRONTEND: noninteractive
|
|
|
|
- name: shellcheck
|
|
|
|
run: bin/dev/shell-check.sh
|
|
|
|
- name: perl critic
|
|
|
|
run: bin/dev/perl-critic.sh
|
|
|
|
- name: perl tidy
|
2020-11-23 05:05:45 +08:00
|
|
|
run: bin/dev/perl-tidy.sh test
|