Skip to content

Commit

Permalink
Test macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
fabasoad committed Jan 9, 2025
1 parent bd5da59 commit e4ebf28
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/functional-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<!-- prettier-ignore-start -->
| Name | Description | Example |
|-----------|-------------------------------------|---------|
| installed | Whether kitten was installed or not | `true` |
<!-- prettier-ignore-end -->

## Example usage

Let's try to run `hello-world.ktn` file with the following content:
Expand All @@ -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
```
Expand Down
6 changes: 4 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e4ebf28

Please sign in to comment.