This commit is contained in:
ok-nick 2022-07-17 23:41:44 -04:00
parent e996770139
commit 333be3b665
2 changed files with 51 additions and 0 deletions

14
.github/actions/env.yml vendored Normal file
View file

@ -0,0 +1,14 @@
name: Build Test Environment
description: Build test environment for setup-aftman
author: ok-nick
runs:
using: 'composite'
steps:
- run: |
cat > aftman.toml << EOF
[tools]
selene = "Kampfkarren/selene@0.19.1"
stylua = "JohnnyMorganz/stylua@0.14.0"
rojo = "rojo-rbx/rojo@7.2.1"
EOF

37
.github/workflows/CI.yml vendored Normal file
View file

@ -0,0 +1,37 @@
name: CI
on: [push, pull_request]
jobs:
test_linux:
runs-on: ubuntu-latest
steps:
- name: Setup environment
uses: ./.github/actions/env.yml
- name: Run setup-aftman
uses: ok-nick/setup-aftman@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
test_mac:
runs-on: macos-latest
steps:
- name: Setup environment
uses: ./.github/actions/env.yml
- name: Run setup-aftman
uses: ok-nick/setup-aftman@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
test_windows:
runs-on: windows-latest
steps:
- name: Setup environment
uses: ./.github/actions/env.yml
- name: Run setup-aftman
uses: ok-nick/setup-aftman@main
with:
token: ${{ secrets.GITHUB_TOKEN }}