Skip to content

Make sure the directory exists (sometimes it doesn't, e.g., EdgeRoute… #198

Make sure the directory exists (sometimes it doesn't, e.g., EdgeRoute…

Make sure the directory exists (sometimes it doesn't, e.g., EdgeRoute… #198

Workflow file for this run

name: static analysis for shell scripts using shellcheck and shfmt
on:
push:
branches:
- master
- develop
paths-ignore:
- "**/LICENSE"
- "**/README.md"
- "**/README.zh-Hans-CN.md"
pull_request:
branches:
- master
- develop
jobs:
sh-checker:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Run the sh-checker
uses: luizm/action-sh-checker@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SHFMT_OPTS: -i 2 -ci -sr
with:
sh_checker_comment: true
sh_checker_exclude: "LICENSE README.md README.zh-Hans-CN.md"
filed-test:
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Filed-test on Ubuntu 18.04
run: |
sudo bash install-release.sh
sudo bash install-release.sh --check
sudo bash install-dat-release.sh
- name: Filed-test on Rocky Linux 8.6
uses: docker://rockylinux:8.6
with:
args: bash install-release.sh
- name: Filed-test on Arch Linux
uses: docker://archlinux:latest
with:
args: bash install-release.sh