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 }}
|
|
|
|
|
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
|