From 4ee515170f6f40b28008e9040bfa39136693f191 Mon Sep 17 00:00:00 2001 From: RDW Date: Mon, 29 May 2023 02:48:56 +0200 Subject: [PATCH] CI: Set up an example workflow to test the action --- .github/hello-world.lua | 1 + .github/workflows/test.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .github/hello-world.lua create mode 100644 .github/workflows/test.yml diff --git a/.github/hello-world.lua b/.github/hello-world.lua new file mode 100644 index 0000000..6657121 --- /dev/null +++ b/.github/hello-world.lua @@ -0,0 +1 @@ +print("Hello from GItHub Actions!") \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..43b2f7d --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: Test evo-setup-action + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + gha-test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + + steps: + - name: Checkout Git repository + uses: actions/checkout@v3 + + - name: Set up Evo runtime + uses: evo-lua/evo-setup-action@main + with: + version: 'v0.0.3' + + - name: Run Lua script + run: | + evo .github/hello-world.lua + shell: bash