feat: optimize and determine whether xiaoya container needs to be res… #102
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: test | |
on: | |
workflow_dispatch: | |
push: | |
pull_request: | |
jobs: | |
# test: | |
# runs-on: ubuntu-latest | |
# name: Test | |
# steps: | |
# - | |
# name: Checkout | |
# uses: actions/checkout@v4 | |
# - name: Test | |
# run: | | |
# bash main.sh test | |
shellcheck: | |
runs-on: ubuntu-latest | |
name: Shellcheck | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
- name: Shellcheck | |
run: | | |
shellcheck main.sh | |
shfmt: | |
runs-on: ubuntu-latest | |
name: shfmt | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
- name: Prepare | |
run: | | |
wget https://github.com/mvdan/sh/releases/download/v3.3.1/shfmt_v3.3.1_linux_amd64 -O ./shfmt | |
chmod +x shfmt | |
- name: shfmt | |
run: | | |
./shfmt -d -i 4 -sr main.sh |