diff --git a/.github/actions/env.yml b/.github/actions/env.yml new file mode 100644 index 0000000..dd8e6db --- /dev/null +++ b/.github/actions/env.yml @@ -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 diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..157558c --- /dev/null +++ b/.github/workflows/CI.yml @@ -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 }} +