From 333be3b665f03a6ca9c250e5f5d5ae340b023dea Mon Sep 17 00:00:00 2001 From: ok-nick <25470747+ok-nick@users.noreply.github.com> Date: Sun, 17 Jul 2022 23:41:44 -0400 Subject: [PATCH] add CI --- .github/actions/env.yml | 14 ++++++++++++++ .github/workflows/CI.yml | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 .github/actions/env.yml create mode 100644 .github/workflows/CI.yml 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 }} +