mirror of
https://github.com/terem42/zfs-hetzner-vm.git
synced 2025-12-22 14:58:32 +00:00
shellcheck workflow added
This commit is contained in:
24
.github/workflows/shellcheck.yml
vendored
Normal file
24
.github/workflows/shellcheck.yml
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master, develop]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
Shellcheck:
|
||||
name: Shellcheck
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Code checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Check scripts with Shellcheck
|
||||
uses: essentialkaos/shellcheck-action@v1
|
||||
with:
|
||||
files: src/hetzner-debian10-zfs-setup.sh src/hetzner-debian11-zfs-setup.sh src/hetzner-ubuntu18-zfs-setup.sh src/hetzner-ubuntu20-zfs-setup.sh
|
||||
severity: error
|
||||
format: gcc
|
||||
shell: dash
|
||||
@@ -499,7 +499,7 @@ echo "======= installing zfs on rescue system =========="
|
||||
apt install --yes zfs-dkms zfsutils-linux
|
||||
add-apt-repository -r 'deb http://ppa.launchpad.net/jonathonf/zfs/ubuntu focal main'
|
||||
apt update
|
||||
find /usr/local/sbin/ -type l | xargs rm
|
||||
find /usr/local/sbin/ -type l -exec rm {} +
|
||||
zfs --version
|
||||
|
||||
echo "======= partitioning the disk =========="
|
||||
|
||||
@@ -499,7 +499,7 @@ echo "======= installing zfs on rescue system =========="
|
||||
apt install --yes zfs-dkms zfsutils-linux
|
||||
add-apt-repository -r 'deb http://ppa.launchpad.net/jonathonf/zfs/ubuntu focal main'
|
||||
apt update
|
||||
find /usr/local/sbin/ -type l | xargs rm
|
||||
find /usr/local/sbin/ -type l -exec rm {} +
|
||||
zfs --version
|
||||
|
||||
echo "======= partitioning the disk =========="
|
||||
|
||||
@@ -466,7 +466,7 @@ echo "======= installing zfs on rescue system =========="
|
||||
apt install --yes zfs-dkms zfsutils-linux
|
||||
add-apt-repository -r 'deb http://ppa.launchpad.net/jonathonf/zfs/ubuntu focal main'
|
||||
apt update
|
||||
find /usr/local/sbin/ -type l | xargs rm
|
||||
find /usr/local/sbin/ -type l -exec rm {} +
|
||||
zfs --version
|
||||
|
||||
echo "======= partitioning the disk =========="
|
||||
|
||||
@@ -466,7 +466,7 @@ echo "======= installing zfs on rescue system =========="
|
||||
apt install --yes zfs-dkms zfsutils-linux
|
||||
add-apt-repository -r 'deb http://ppa.launchpad.net/jonathonf/zfs/ubuntu focal main'
|
||||
apt update
|
||||
find /usr/local/sbin/ -type l | xargs rm
|
||||
find /usr/local/sbin/ -type l -exec rm {} +
|
||||
zfs --version
|
||||
|
||||
echo "======= partitioning the disk =========="
|
||||
|
||||
Reference in New Issue
Block a user