Fix installation script on MacOS (#1263)

Fixed #1254

and also add CI for installation script and shellcheck.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2023-08-09 19:37:26 +10:00 committed by GitHub
parent 7f1ddd1dd7
commit 1c886d8897
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 118 additions and 3 deletions

32
.github/workflows/shellcheck.yml vendored Normal file
View file

@ -0,0 +1,32 @@
name: Shellcheck
on:
merge_group:
pull_request:
types:
- opened
- reopened
- synchronize
paths:
- '**.sh'
push:
branches:
- main
paths:
- '**.sh'
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: taiki-e/install-action@v2
with:
tool: fd-find
- name: shellcheck
run: fd -e sh -t f -X shellcheck