2022-07-18 17:07:51 +01:00
|
|
|
name: Test
|
2022-07-18 18:32:35 +01:00
|
|
|
description: Test `setup-aftman`.
|
2022-07-18 04:48:51 +01:00
|
|
|
author: ok-nick
|
|
|
|
|
2022-07-18 17:07:51 +01:00
|
|
|
# same input as `setup-aftman`
|
|
|
|
inputs:
|
|
|
|
version:
|
|
|
|
required: false
|
|
|
|
path:
|
2022-09-17 04:16:42 +01:00
|
|
|
default: "."
|
2022-07-18 17:07:51 +01:00
|
|
|
required: false
|
|
|
|
token:
|
2022-09-17 04:16:42 +01:00
|
|
|
default: "${{ github.token }}"
|
2022-07-18 17:07:51 +01:00
|
|
|
required: false
|
|
|
|
|
2022-07-18 04:48:51 +01:00
|
|
|
runs:
|
2022-09-17 04:16:42 +01:00
|
|
|
using: "composite"
|
2022-07-18 04:48:51 +01:00
|
|
|
steps:
|
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]
|
2022-09-17 04:16:42 +01:00
|
|
|
selene = "Kampfkarren/selene@0.19.1"
|
|
|
|
stylua = "JohnnyMorganz/stylua@0.14.0"
|
|
|
|
rojo = "rojo-rbx/rojo@7.2.1"
|
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 }}
|
|
|
|
token: ${{ inputs.token }}
|
|
|
|
|
2022-08-22 18:53:06 +01:00
|
|
|
- name: Verify executables in PATH on Bash
|
2022-08-17 05:17:52 +01:00
|
|
|
run: |
|
|
|
|
if ! hash selene stylua rojo 2>/dev/null; then
|
|
|
|
exit 1;
|
|
|
|
fi
|
|
|
|
shell: bash
|
|
|
|
|
2022-08-22 21:21:49 +01:00
|
|
|
- name: Verify executables in PATH on PowerShell for Windows
|
2022-08-22 21:36:04 +01:00
|
|
|
if: runner.os == 'Windows'
|
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"
|
2022-08-22 18:53:06 +01:00
|
|
|
shell: powershell
|