2022-07-18 12:07:51 -04:00
|
|
|
name: Test
|
2022-07-18 13:32:35 -04:00
|
|
|
description: Test `setup-aftman`.
|
2022-07-17 23:48:51 -04:00
|
|
|
author: ok-nick
|
|
|
|
|
2022-07-18 12:07:51 -04:00
|
|
|
# same input as `setup-aftman`
|
|
|
|
inputs:
|
|
|
|
version:
|
|
|
|
required: false
|
|
|
|
path:
|
2022-09-16 23:16:42 -04:00
|
|
|
default: "."
|
2022-07-18 12:07:51 -04:00
|
|
|
required: false
|
|
|
|
token:
|
2022-09-16 23:16:42 -04:00
|
|
|
default: "${{ github.token }}"
|
2022-07-18 12:07:51 -04:00
|
|
|
required: false
|
|
|
|
|
2022-07-17 23:48:51 -04:00
|
|
|
runs:
|
2022-09-16 23:16:42 -04:00
|
|
|
using: "composite"
|
2022-07-17 23:48:51 -04:00
|
|
|
steps:
|
2022-09-16 23:16:42 -04:00
|
|
|
- name: Create manifest file
|
|
|
|
run: |
|
|
|
|
cat > ${{ inputs.path }}/aftman.toml << EOF
|
2022-07-17 23:48:51 -04:00
|
|
|
[tools]
|
2022-09-16 23:16:42 -04:00
|
|
|
selene = "Kampfkarren/selene@0.19.1"
|
|
|
|
stylua = "JohnnyMorganz/stylua@0.14.0"
|
|
|
|
rojo = "rojo-rbx/rojo@7.2.1"
|
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
|
|
|
|
|
|
|
- name: Run setup-aftman
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
version: ${{ inputs.version }}
|
|
|
|
path: ${{ inputs.path }}
|
|
|
|
token: ${{ inputs.token }}
|
|
|
|
|
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
|