From e4ebf28ded9609d9b57093467e7a9812b179413d Mon Sep 17 00:00:00 2001 From: fabasoad Date: Thu, 9 Jan 2025 19:24:41 +0900 Subject: [PATCH] Test macOS --- .github/workflows/functional-tests.yml | 2 +- README.md | 22 ++++++++++++++++++++-- action.yml | 6 ++++-- 3 files changed, 25 insertions(+), 5 deletions(-) diff --git a/.github/workflows/functional-tests.yml b/.github/workflows/functional-tests.yml index 2ca3d8b..8213fee 100644 --- a/.github/workflows/functional-tests.yml +++ b/.github/workflows/functional-tests.yml @@ -27,7 +27,7 @@ jobs: strategy: fail-fast: false matrix: - os: ["ubuntu", "windows"] + os: ["ubuntu", "macos", "windows"] steps: - name: Checkout ${{ github.repository }} uses: actions/checkout@v4 diff --git a/README.md b/README.md index bcd17b2..83658a0 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,24 @@ This action sets up a [Kitten](http://kittenlang.org/). None. +## Inputs + +```yaml +- uses: fabasoad/setup-kitten-action@v1 + with: + # (Optional) If "false" skips installation if kitten is already installed. + # If "true" installs kitten in any case. Defaults to "false". + force: "false" +``` + +## Outputs + + +| Name | Description | Example | +|-----------|-------------------------------------|---------| +| installed | Whether kitten was installed or not | `true` | + + ## Example usage Let's try to run `hello-world.ktn` file with the following content: @@ -45,8 +63,8 @@ jobs: name: Setup runs-on: ubuntu-latest steps: - - uses: actions/checkout@main - - uses: fabasoad/setup-kitten-action@main + - uses: actions/checkout@v4 + - uses: fabasoad/setup-kitten-action@v1 - name: Run script run: kitten ./hello-world.ktn ``` diff --git a/action.yml b/action.yml index cb9f9b6..198f6e4 100644 --- a/action.yml +++ b/action.yml @@ -36,8 +36,10 @@ runs: if: ${{ steps.info.outputs.bin-installed == 'false' }} uses: actions/checkout@v4 with: - repository: "evincarofautumn/kitten" - ref: "2bbc264d7f05c4a7d7b35d06773d1ab2f0623193" # pragma: allowlist secret + repository: "fabasoad/kitten" + ref: "7c46b5b48152bb75bc1482d0373d682b163bf3e5" # pragma: allowlist secret + # repository: "evincarofautumn/kitten" + # ref: "2bbc264d7f05c4a7d7b35d06773d1ab2f0623193" # pragma: allowlist secret path: ${{ steps.info.outputs.bin-dir }} - name: Install Kitten