Create test workflows #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | ||
workflow_call: | ||
inputs: | ||
version: | ||
type: string | ||
required: false | ||
path: | ||
type: string | ||
default: "." | ||
required: false | ||
cache: | ||
type: string | ||
default: "true" | ||
required: false | ||
jobs: | ||
test-env: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Create manifest file | ||
run: | | ||
cat > ${{ inputs.path }}/rokit.toml << EOF | ||
[tools] | ||
selene = "Kampfkarren/[email protected]" | ||
stylua = "JohnnyMorganz/[email protected]" | ||
rojo = "rojo-rbx/[email protected]" | ||
EOF | ||
shell: bash | ||
- name: Run setup-rokit | ||
uses: ./ | ||
with: | ||
version: ${{ inputs.version }} | ||
path: ${{ inputs.path }} | ||
cache: ${{ inputs.cache }} | ||
- name: Verify executables in PATH on bash | ||
run: | | ||
command -v selene | ||
command -v stylua | ||
command -v rojo | ||
shell: bash | ||
- name: Verify executables in PATH on pwsh | ||
run: | | ||
Get-Command "selene" | ||
Get-Command "stylua" | ||
Get-Command "rojo" | ||
shell: pwsh |