From 775a9586e64c13b873c10e3e6d6cc13f0f911eed Mon Sep 17 00:00:00 2001 From: Hayato Date: Tue, 23 Apr 2024 19:34:32 +0900 Subject: [PATCH] Test run --- .github/workflows/actions.yml | 46 +++++++++++++++++++++++++++++++++++ .github/workflows/lint.yml | 14 ----------- 2 files changed, 46 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/actions.yml delete mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml new file mode 100644 index 0000000..5485235 --- /dev/null +++ b/.github/workflows/actions.yml @@ -0,0 +1,46 @@ +name: Workflows + +on: [push, pull_request] + +jobs: + shellcheck: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v2 + - name: Shellcheck Version Check + run: shellcheck -V + - name: Run ShellCheck + run: shellcheck mkRAMDisk.sh + + mount-and-test: + runs-on: macos-14 + steps: + - name: checkout + uses: actions/checkout@v4 + + - name: Goss downloaded cache + uses: actions/cache/restore@v4 + with: + path: /tmp/goss + key: mkramdisk-goss + + - name: Download Goss + run: | + curl -L https://github.com/goss-org/goss/releases/download/v0.4.6/goss-darwin-arm64 \ + -o /tmp/goss && \ + chmod +x /tmp/goss + + - name: Store goss cache + uses: actions/cache/save@v4 + with: + path: /tmp/dgoss + key: mkramdisk-goss + + - name: Run mkRAMDisk.sh + run: | + ./mkRAMDisk.sh + + - name: Run goss + run: | + /tmp/goss diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 33e9be0..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: shellcheck - -on: [push, pull_request] - -jobs: - shellcheck: - runs-on: ubuntu-18.04 - steps: - - name: checkout - uses: actions/checkout@v2 - - name: Shellcheck Version Check - run: shellcheck -V - - name: Run ShellCheck - run: shellcheck mkRAMDisk.sh