2023-09-18 05:09:47 +01:00
|
|
|
on:
|
|
|
|
workflow_call:
|
|
|
|
inputs:
|
|
|
|
version:
|
|
|
|
type: string
|
|
|
|
required: false
|
2023-09-18 05:17:16 +01:00
|
|
|
path:
|
2023-09-18 05:09:47 +01:00
|
|
|
type: string
|
|
|
|
required: false
|
2023-09-18 05:17:16 +01:00
|
|
|
cache:
|
2023-09-18 05:09:47 +01:00
|
|
|
type: string
|
|
|
|
required: false
|
2023-09-18 05:17:16 +01:00
|
|
|
token:
|
2023-09-18 05:09:47 +01:00
|
|
|
type: string
|
2023-09-18 05:17:16 +01:00
|
|
|
required: false
|
2022-07-18 04:48:51 +01:00
|
|
|
|
2023-09-18 05:09:47 +01: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 17:07:51 +01:00
|
|
|
|
2022-09-17 04:16:42 +01:00
|
|
|
- name: Create manifest file
|
|
|
|
run: |
|
|
|
|
cat > ${{ inputs.path }}/aftman.toml << EOF
|
2022-07-18 04:48:51 +01:00
|
|
|
[tools]
|
2023-09-18 05:09:47 +01:00
|
|
|
selene = "Kampfkarren/selene@0.25.0"
|
|
|
|
stylua = "JohnnyMorganz/stylua@0.18.2"
|
|
|
|
rojo = "rojo-rbx/rojo@7.3.0"
|
2022-07-18 04:48:51 +01:00
|
|
|
EOF
|
2022-07-18 17:20:56 +01:00
|
|
|
shell: bash
|
2022-07-18 17:07:51 +01:00
|
|
|
|
|
|
|
- name: Run setup-aftman
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
version: ${{ inputs.version }}
|
|
|
|
path: ${{ inputs.path }}
|
2023-09-18 05:09:47 +01:00
|
|
|
cache: ${{ inputs.cache }}
|
2022-07-18 17:07:51 +01:00
|
|
|
token: ${{ inputs.token }}
|
|
|
|
|
2023-08-03 17:02:53 +01:00
|
|
|
- name: Verify executables in PATH on bash
|
2022-08-17 05:17:52 +01:00
|
|
|
run: |
|
2023-08-03 17:02:53 +01:00
|
|
|
command -v selene
|
|
|
|
command -v stylua
|
|
|
|
command -v rojo
|
2022-08-17 05:17:52 +01:00
|
|
|
shell: bash
|
|
|
|
|
2023-08-03 17:02:53 +01:00
|
|
|
- name: Verify executables in PATH on pwsh
|
2022-08-22 18:53:06 +01:00
|
|
|
run: |
|
2022-08-22 18:58:54 +01:00
|
|
|
Get-Command "selene"
|
|
|
|
Get-Command "stylua"
|
|
|
|
Get-Command "rojo"
|
2023-08-03 17:02:53 +01:00
|
|
|
shell: pwsh
|