chore(actions): include tests for different manifest formats

This commit is contained in:
Erica Marigold 2024-08-13 20:46:30 +05:30
parent ca252141e0
commit a9e6891cf9
No known key found for this signature in database
GPG key ID: 2768CC0C23D245D1
2 changed files with 15 additions and 8 deletions

View file

@ -18,13 +18,15 @@ jobs:
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
- name: Create manifest file
- name: Create manifest file (aftman/rokit)
if: matrix.manifest != foreman.toml
run: |
cat > ${{ inputs.path }}/rokit.toml << EOF
cat > ${{ inputs.path }}/${{ matrix.manifest }} << EOF
[tools]
selene = "Kampfkarren/selene@0.25.0"
stylua = "JohnnyMorganz/stylua@0.18.2"
@ -32,6 +34,17 @@ jobs:
EOF
shell: bash
- 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
- name: Run setup-rokit
uses: ./
with:

View file

@ -1,6 +0,0 @@
[tools]
luau-lsp = "JohnnyMorganz/luau-lsp@1.31.0"
lune = "CompeyDev/lune@0.8.7"
# moonwave-extractor = "evaera/moonwave@1.1.3"
selene = "Kampfkarren/selene@0.27.1"
stylua = "JohnnyMorganz/StyLua@0.20.0"