setup-rokit/.github/actions/test/action.yml
2022-09-16 23:22:04 -04:00

49 lines
1.1 KiB
YAML

name: Test
description: Test `setup-aftman`.
author: ok-nick
# same input as `setup-aftman`
inputs:
version:
required: false
path:
default: "."
required: false
token:
default: "${{ github.token }}"
required: false
runs:
using: "composite"
steps:
- name: Create manifest file
run: |
cat > ${{ inputs.path }}/aftman.toml << EOF
[tools]
selene = "Kampfkarren/selene@0.19.1"
stylua = "JohnnyMorganz/stylua@0.14.0"
rojo = "rojo-rbx/rojo@7.2.1"
EOF
shell: bash
- name: Run setup-aftman
uses: ./
with:
version: ${{ inputs.version }}
path: ${{ inputs.path }}
token: ${{ inputs.token }}
- name: Verify executables in PATH on Bash
run: |
if ! hash selene stylua rojo 2>/dev/null; then
exit 1;
fi
shell: bash
- name: Verify executables in PATH on PowerShell for Windows
if: runner.os == 'Windows'
run: |
Get-Command "selene"
Get-Command "stylua"
Get-Command "rojo"
shell: powershell