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

68 lines
1.7 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
2023-09-18 05:22:07 +01:00
default: "."
required: false
2023-09-18 05:17:16 +01:00
cache:
type: string
2023-09-18 05:26:00 +01:00
default: "true"
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]
manifest: [rokit.toml, aftman.toml, foreman.toml]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
2022-07-18 17:07:51 +01:00
- name: Create manifest file (aftman/rokit)
if: matrix.manifest != foreman.toml
2022-09-17 04:16:42 +01:00
run: |
cat > ${{ inputs.path }}/${{ matrix.manifest }} << 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: Create manifest file (foreman)
if: matrix.manifest == foreman.toml
run: |
cat > ${{ inputs.path }}/${{ matrix.manifest }} << EOF
[tools]
selene = { github = "Kampfkarren/selene", version = "0.25.0" }
stylua = { github = "JohnnyMorganz/stylua", version = "0.18.2" }
rojo = { github = "rojo-rbx/rojo", version = "7.3.0" }
EOF
shell: bash
2024-07-15 18:26:57 +01:00
- name: Run setup-rokit
2022-07-18 17:07:51 +01:00
uses: ./
with:
version: ${{ inputs.version }}
path: ${{ inputs.path }}
cache: ${{ inputs.cache }}
2022-07-18 17:07:51 +01:00
- 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