2023-09-18 00:09:47 -04:00
|
|
|
on:
|
|
|
|
workflow_call:
|
|
|
|
inputs:
|
|
|
|
version:
|
|
|
|
type: string
|
|
|
|
required: false
|
2023-09-18 00:17:16 -04:00
|
|
|
path:
|
2023-09-18 00:09:47 -04:00
|
|
|
type: string
|
2023-09-18 00:22:07 -04:00
|
|
|
default: "."
|
2023-09-18 00:09:47 -04:00
|
|
|
required: false
|
2023-09-18 00:17:16 -04:00
|
|
|
cache:
|
2023-09-18 00:09:47 -04:00
|
|
|
type: string
|
2023-09-18 00:26:00 -04:00
|
|
|
default: "true"
|
2023-09-18 00:17:16 -04:00
|
|
|
required: false
|
2022-07-17 23:48:51 -04:00
|
|
|
|
2023-09-18 00:09:47 -04:00
|
|
|
jobs:
|
|
|
|
test-env:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
2022-07-18 12:07:51 -04:00
|
|
|
|
2022-09-16 23:16:42 -04:00
|
|
|
- name: Create manifest file
|
|
|
|
run: |
|
2024-07-15 22:56:57 +05:30
|
|
|
cat > ${{ inputs.path }}/rokit.toml << EOF
|
2022-07-17 23:48:51 -04:00
|
|
|
[tools]
|
2023-09-18 00:09:47 -04:00
|
|
|
selene = "Kampfkarren/selene@0.25.0"
|
|
|
|
stylua = "JohnnyMorganz/stylua@0.18.2"
|
|
|
|
rojo = "rojo-rbx/rojo@7.3.0"
|
2022-07-17 23:48:51 -04:00
|
|
|
EOF
|
2022-07-18 12:20:56 -04:00
|
|
|
shell: bash
|
2022-07-18 12:07:51 -04:00
|
|
|
|
2024-07-15 22:56:57 +05:30
|
|
|
- name: Run setup-rokit
|
2022-07-18 12:07:51 -04:00
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
version: ${{ inputs.version }}
|
|
|
|
path: ${{ inputs.path }}
|
2023-09-18 00:09:47 -04:00
|
|
|
cache: ${{ inputs.cache }}
|
2022-07-18 12:07:51 -04:00
|
|
|
|
2023-08-03 12:02:53 -04:00
|
|
|
- name: Verify executables in PATH on bash
|
2022-08-17 00:17:52 -04:00
|
|
|
run: |
|
2023-08-03 12:02:53 -04:00
|
|
|
command -v selene
|
|
|
|
command -v stylua
|
|
|
|
command -v rojo
|
2022-08-17 00:17:52 -04:00
|
|
|
shell: bash
|
|
|
|
|
2023-08-03 12:02:53 -04:00
|
|
|
- name: Verify executables in PATH on pwsh
|
2022-08-22 13:53:06 -04:00
|
|
|
run: |
|
2022-08-22 13:58:54 -04:00
|
|
|
Get-Command "selene"
|
|
|
|
Get-Command "stylua"
|
|
|
|
Get-Command "rojo"
|
2023-08-03 12:02:53 -04:00
|
|
|
shell: pwsh
|