setup-rokit/.github/actions/test/action.yml

48 lines
1 KiB
YAML
Raw Normal View History

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:
default: '.'
required: false
token:
default: '${{ github.token }}'
required: false
2022-07-18 04:48:51 +01:00
runs:
using: 'composite'
steps:
2022-07-18 17:20:56 +01:00
- run: |
2022-07-18 17:07:51 +01:00
cat > ${{ inputs.path}}/aftman.toml << EOF
2022-07-18 04:48:51 +01:00
[tools]
selene = "Kampfkarren/selene@0.19.1"
stylua = "JohnnyMorganz/stylua@0.14.0"
rojo = "rojo-rbx/rojo@7.2.1"
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 18:53:06 +01:00
- name: verify executables in PATH on Powershell
run: |
if ! hash selene stylua rojo 2>/dev/null; then
exit 1;
fi
shell: powershell