From b9aad4800fa2578a882d21cf58b2111fb92dc42d Mon Sep 17 00:00:00 2001 From: wy-luke Date: Mon, 4 Sep 2023 01:48:19 +0800 Subject: [PATCH] feat: add test action --- .github/workflows/test.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..c6490a7 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,32 @@ +name: Test + +on: + workflow_dispatch: + push: + branches: [main] + +jobs: + Yes-Test: + runs-on: macos-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + sparse-checkout: sd-installer.sh + sparse-checkout-cone-mode: false + - run: pwd + - run: ls + - run: ls -la ${{ github.workspace }} + - name: Yes + run: yes | bash ${{ github.workspace }}/StableDiffusion-Installer-For-Mac/sd-installer.sh + + No-Test: + runs-on: macos-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + sparse-checkout: sd-installer.sh + sparse-checkout-cone-mode: false + - name: No + run: yes n | bash ${{ github.workspace }}/StableDiffusion-Installer-For-Mac/sd-installer.sh