enh: display fs uuid along with the subvol uuids (fix #21) #64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push,pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: install prerequisites | |
run: sudo apt-get install -y perl libperl-critic-perl perltidy | |
- name: perl check | |
run: perl -c btrfs-list | |
- name: perlcritic | |
run: perlcritic btrfs-list | |
- name: perltidy | |
run: | | |
perltidy -b -csc -iscl -nolc -nbbc -pt=2 -sbt=2 -bt=2 -l=120 -msc=1 btrfs-list | |
if ! test -e btrfs-list.tdy; then | |
echo "OK: perltidy didn't find any change to make" | |
else | |
echo "KO: perltidy found changes to make:" | |
diff -u btrfs-list btrfs-list.tdy | |
exit 1 | |
fi | |
- name: perlcritic | |
run: | | |
perlcritic -3 --statistics --exclude 'ValuesAndExpressions::ProhibitConstantPragma|Variables::RequireLocalizedPunctuationVars|Subroutines::RequireArgUnpacking|InputOutput::RequireBriefOpen|RegularExpressions::RequireExtendedFormatting|Subroutines::ProhibitExcessComplexity|ControlStructures::ProhibitCascadingIfElse|RegularExpressions::ProhibitUnusedCapture|ValuesAndExpressions::ProhibitMismatchedOperators|Modules::ProhibitExcessMainComplexity|ErrorHandling::RequireCarping' btrfs-list |