setup-rokit/.github/workflows/env.yml

57 lines
1.2 KiB
YAML
Raw Normal View History

on:
workflow_call:
inputs:
version:
type: string
required: false
2023-09-18 05:17:16 +01:00
path:
type: string
required: false
2023-09-18 05:17:16 +01:00
cache:
type: string
required: false
2023-09-18 05:17:16 +01:00
token:
type: string
2023-09-18 05:17:16 +01:00
required: false
2022-07-18 04:48:51 +01:00
jobs:
test-env:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
2022-07-18 17:07:51 +01:00
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]
selene = "Kampfkarren/selene@0.25.0"
stylua = "JohnnyMorganz/stylua@0.18.2"
rojo = "rojo-rbx/rojo@7.3.0"
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 }}
cache: ${{ inputs.cache }}
2022-07-18 17:07:51 +01:00
token: ${{ inputs.token }}
- name: Verify executables in PATH on bash
2022-08-17 05:17:52 +01:00
run: |
command -v selene
command -v stylua
command -v rojo
2022-08-17 05:17:52 +01:00
shell: bash
- name: Verify executables in PATH on pwsh
2022-08-22 18:53:06 +01:00
run: |
Get-Command "selene"
Get-Command "stylua"
Get-Command "rojo"
shell: pwsh